Skip to content

Add 90hz/60hz switching #1

@taprobane99

Description

@taprobane99

great script

suggestion for slim 7x is feature to switch internal display to 60hz on battery using gdctl. e.g. modifying this:

#!/bin/bash

MONITOR="eDP-1"
RES="1920x1080" (change)

# Check if we are currently at 90Hz
CURRENT_STATE=$(gdctl list | grep -A 5 "$MONITOR" | grep "current")

if [[ $CURRENT_STATE == *"90"* ]]; then
    echo "Switching to 60Hz..."
    gdctl set -L -m $MONITOR -mode ${RES}@60.000
else
    echo "Switching to 90Hz..."
    gdctl set -L -m $MONITOR -mode ${RES}@90.000
fi

depending on what features gdctl has might be worth creating a slim7x_only script as i think every slim 7x has a 90hz display whereas some other x1e laptops don't. also the new slim 7x 2026 are 120hz/60hz.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions