ErikReider / SwayNotificationCenter

A simple GTK based notification daemon for SwayWM
GNU General Public License v3.0
1.4k stars 63 forks source link

backlight device not found #481

Open lindeMAX opened 1 month ago

lindeMAX commented 1 month ago

The backlight slider does not show up and i'm getting an error message that swaync is not able find the device:

** (swaync:226274): WARNING **: 13:31:21.692: backlightUtil.vala:41: Could not find device /sys/class/backlight/amdgpu_b11/brightness

But the device does exist:

Me@MyDevice [01:30:00 PM] [/sys/class/backlight/amdgpu_bl1] 
-> % l
Permissions Size User Date Modified Name
.r--r--r--  4.1k root 30 Sep 13:27  actual_brightness
.rw-r--r--  4.1k root 30 Sep 13:27  bl_power
.rw-r--r--  4.1k root 30 Sep 13:27  brightness
lrwxrwxrwx     - root 30 Sep 13:27  device -> ../../card1-eDP-1
.r--r--r--  4.1k root 30 Sep 13:27  max_brightness
drwxr-xr-x     - root 30 Sep 13:27  power
.r--r--r--  4.1k root 30 Sep 13:27  scale
lrwxrwxrwx     - root 30 Sep 13:27  subsystem -> ../../../../../../../../class/backlight
.r--r--r--  4.1k root 30 Sep 13:27  type
.rw-r--r--  4.1k root 30 Sep 13:27  uevent

To Reproduce Add the backlight widget to the config and configure it:

  "widgets": [
     "backlight",
     "volume",
     "mpris",
     "title",
     "dnd",
     "notifications",
     "buttons-grid"
   ],
   "widget-config":{
      "backlight": {
       "subsystem": "backlight",
       "device": "amdgpu_b11"
      },

Expected behavior Get a slider to control the backlight

Desktop (please complete the following information):

lindeMAX commented 1 month ago

Sorry for opening this issue. As soon as i opened it i noticed that i had a typo in the config. It should be _amdgpubl1 and not _amdgpub11

ErikReider commented 1 month ago

Sorry for opening this issue. As soon as i opened it i noticed that i had a typo in the config. It should be _amdgpubl1 and not _amdgpub11

So it works now?

lindeMAX commented 1 month ago

Yes, it's working now