webketje / tuxedo-backlight-control

Minimal Linux (Debian) CLI & UI for TUXEDO / Clevo computers Keyboard Backlight
MIT License
45 stars 9 forks source link

Latest release tuxedo-keyboard changed file-locations #26

Open MrHappy opened 1 year ago

MrHappy commented 1 year ago

Before reporting the bug

Describe the bug Since the latest release the file locations have changed and I cannot change color and brightness anymore. Tuxedo-Keyboard issues #165

─ /bin/sh -c "/usr/bin/python /usr/share/tuxedo-backlight-control/backlight.py brightness 0"
Traceback (most recent call last):
  File "/usr/share/tuxedo-backlight-control/backlight.py", line 59, in <module>
    backlight.state = 1
  File "/usr/share/tuxedo-backlight-control/backlight_control.py", line 122, in state
    self.set_device_param('state', str(value))
  File "/usr/share/tuxedo-backlight-control/backlight_control.py", line 70, in set_device_param
    filehandle = open(BacklightControl.DEVICE_PATH + prop, mode='w')
PermissionError: [Errno 13] Permission denied: '/sys/devices/platform/tuxedo_keyboard/state'

Describe your OS environment

webketje commented 1 year ago

Ah bummer, I'll do my best to publish a new release ASAP. PR welcome btw (I don't have kernel 6.x locally yet so can't test it)

mbomb007 commented 1 year ago

I have the same error. Also, when I installed the update for the driver, this package was uninstalled and also my settings for backlight configuration on startup were removed.

Unfortunately, I didn't document how I got the backlight to be set on startup. Could you tell me where the config file is for initial configuration on boot?