View previous topic :: View next topic |
Author |
Message |
Princess Nell l33t
Joined: 15 Apr 2005 Posts: 927
|
Posted: Tue May 22, 2012 8:02 am Post subject: /sys questions |
|
|
These warnings have been bugging me for a while.
1. ~/.xsession-errors logs:
Code: |
** (gnome-power-backlight-helper:4287): WARNING **: failed to find any devices: Error opening directory '/sys/class/backlight': No such file or directory
|
What controls this? The relevant parts of the kernel config (3.2.12-gentoo):
Code: |
boot # grep BACKLIGHT config-3.2.12-gentoo
# CONFIG_FB_BACKLIGHT is not set
CONFIG_BACKLIGHT_LCD_SUPPORT=y
CONFIG_BACKLIGHT_CLASS_DEVICE=m
CONFIG_BACKLIGHT_GENERIC=m
# CONFIG_BACKLIGHT_PROGEAR is not set
# CONFIG_BACKLIGHT_APPLE is not set
# CONFIG_BACKLIGHT_SAHARA is not set
# CONFIG_BACKLIGHT_ADP8860 is not set
# CONFIG_BACKLIGHT_ADP8870 is not set
# CONFIG_LEDS_TRIGGER_BACKLIGHT is not set
|
2. /var/log/messages is full of these notices:
Code: |
May 22 08:33:59 cpufreqd: get_class_device_attribute: couldn't open /sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0/energy_full (No such file or directory)
May 22 08:33:59 cpufreqd: get_class_device_attribute: couldn't open /sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0/energy_now (No such file or directory)
|
I have CONFIG_ACPI_BATTERY=y in the kernel config. Not sure if this is a kernel config or cpufreqd config matter. |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5941
|
Posted: Tue May 22, 2012 9:37 am Post subject: Re: /sys questions |
|
|
Princess Nell wrote: | These warnings have been bugging me for a while.
1. ~/.xsession-errors logs:
Code: |
** (gnome-power-backlight-helper:4287): WARNING **: failed to find any devices: Error opening directory '/sys/class/backlight': No such file or directory
|
What controls this? The relevant parts of the kernel config (3.2.12-gentoo):
Code: |
boot # grep BACKLIGHT config-3.2.12-gentoo
# CONFIG_FB_BACKLIGHT is not set
CONFIG_BACKLIGHT_LCD_SUPPORT=y
CONFIG_BACKLIGHT_CLASS_DEVICE=m
CONFIG_BACKLIGHT_GENERIC=m
# CONFIG_BACKLIGHT_PROGEAR is not set
# CONFIG_BACKLIGHT_APPLE is not set
# CONFIG_BACKLIGHT_SAHARA is not set
# CONFIG_BACKLIGHT_ADP8860 is not set
# CONFIG_BACKLIGHT_ADP8870 is not set
# CONFIG_LEDS_TRIGGER_BACKLIGHT is not set
|
|
it looks for a backlight instance, the fact that you've enabled it doesn't mean there will be one as both generic and glass re modules, if you haven't brought them up, there won't be most probably /sys/class/backlight.
Princess Nell wrote: |
2. /var/log/messages is full of these notices:
Code: |
May 22 08:33:59 cpufreqd: get_class_device_attribute: couldn't open /sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0/energy_full (No such file or directory)
May 22 08:33:59 cpufreqd: get_class_device_attribute: couldn't open /sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0/energy_now (No such file or directory)
|
I have CONFIG_ACPI_BATTERY=y in the kernel config. Not sure if this is a kernel config or cpufreqd config matter. |
I'm pretty sure these are ups related prints. _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
Princess Nell l33t
Joined: 15 Apr 2005 Posts: 927
|
Posted: Tue May 22, 2012 7:47 pm Post subject: |
|
|
Ok, when I load the module, the directory is created, but empty. I can also load lcd and generic_bl, but
Code: |
$ gnome-power-backlight-helper --get-brightness
No backlights were found on your system
$
|
Where do I go from here? There's nothing related to these modules in dmesg. |
|
Back to top |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5941
|
Posted: Wed May 23, 2012 5:04 am Post subject: |
|
|
Princess Nell wrote: | Ok, when I load the module, the directory is created, but empty. I can also load lcd and generic_bl, but
Code: |
$ gnome-power-backlight-helper --get-brightness
No backlights were found on your system
$
|
Where do I go from here? There's nothing related to these modules in dmesg. |
compile all backlights as modules and see which one auto loads on boot. _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein |
|
Back to top |
|
|
|