Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/sys questions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Princess Nell
l33t
l33t


Joined: 15 Apr 2005
Posts: 916

PostPosted: Tue May 22, 2012 8:02 am    Post subject: /sys questions Reply with quote

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
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Tue May 22, 2012 9:37 am    Post subject: Re: /sys questions Reply with quote

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
View user's profile Send private message
Princess Nell
l33t
l33t


Joined: 15 Apr 2005
Posts: 916

PostPosted: Tue May 22, 2012 7:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Wed May 23, 2012 5:04 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum