You are not logged in.

#1 2011-10-11 00:01:15

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Custom kernel: /sys/class/backlight is empty (not empty with default)

I just compiled a 3.0.4 kernel and found that /sys/class/backlight is empty. The default x86_64 kernel fills this directory populates this directory properly. Any suggestions on why this might be the case?

$ lspci
01:00.0 VGA compatible controller: nVidia Corporation GT215 [Quadro FX 1800M] (rev a2)
Graphics support  --->
   < > /dev/agpgart (AGP Support)  ---> 
   -*- VGA Arbitration
   (16)  Maximum number of GPUs
   [ ] Laptop Hybrid Graphics - GPU switching support
   <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)  --->
      [[No options selected in here, though]]
   < > Intel GMA500 Stub Driver
   < > Lowlevel video output switch controls
   <*> Support for frame buffer devices  --->
      -*-   Enable Video Mode Handling Helpers
      <M>   nVidia Framebuffer Support
      [*]     Support for backlight control
   -*- Backlight & LCD device support  --->
      -*-   Lowlevel Backlight controls
   Display device support  --->
   Console display driver support  --->
   -*- VGA text console
      [*]   Enable Scrollback Buffer in System RAM
      (64)    Scrollback Buffer Size (in KB)
      <*> Framebuffer Console support
   [*] Bootup logo  --->

Not sure what I'm missing. I would have figured that the nvidia framebuffer support and backlight control would do the trick. Any suggestions?

I've looked at other threads like THIS ONE and THIS ONE. They seem to be attempting to solve issues with the default kernel and employing things like nvidia-bl or adding lines to menu.lst. My difference is that the default kernel works fine with a custom script I have to directly change the contents of /sys/class/backlight/brightness and such. For whatever reason, this custom kernel is not producing the usual suspects in that directory.

Thoughts? Let me know if other input would be helpful.

Offline

#2 2011-10-11 15:43:34

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: Custom kernel: /sys/class/backlight is empty (not empty with default)

Please upload your '.config'. Is CONFIG_BACKLIGHT_CLASS_DEVICE set?


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#3 2011-10-11 16:12:05

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: Custom kernel: /sys/class/backlight is empty (not empty with default)

@Stebalien Here's the config on pastebin

And yes, that option is set.

$ grep BACKLIGHT /boot/config-custom
CONFIG_FB_BACKLIGHT=y
CONFIG_FB_NVIDIA_BACKLIGHT=y
CONFIG_BACKLIGHT_LCD_SUPPORT=y
CONFIG_BACKLIGHT_CLASS_DEVICE=y
# CONFIG_BACKLIGHT_GENERIC is not set
# 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

Offline

Board footer

Powered by FluxBB