You are not logged in.

#1 2011-06-01 09:39:13

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Acer Aspire 1 - backlight during boot

Hi,

I have a non-critical, but rather annoying issue during boot on my Acer Aspire 1 netbook. The backlight turns off right around the point where the boot hooks start, and then turns back on right at login. I'd obviously prefer to have the backlight stay on during boot, andhave some code to plug into the boot sequence, but can not work out where to insert it.

xrandr --props reports:

Screen 0: minimum 320 x 200, current 1024 x 600, maximum 4096 x 4096
LVDS1 connected 1024x600+0+0 (normal left inverted right x axis y axis) 222mm x 125mm
    _ICC_PROFILE: ...
    EDID:
        00ffffffffffff000daf041000000000
        0313010380160c780acf459059579529
        1f505400000001010101010101010101
        010101010101c81200f040582220412c
        4500de7d00000018000000fe004e3130
        314c362d4c30320a2020000000fe0043
        4d4f0a202020202020202020000000fe
        004e3130314c362d4c30320a20200039
    BACKLIGHT: 9 (0x00000009)    range:  (0,9)
    Backlight: 9 (0x00000009)    range:  (0,9)
    scaling mode:    Full aspect
        supported: None         Full         Center       Full aspect 
   1024x600       60.0*+
   800x600        60.3     56.2  
   640x480        59.9  
VGA1 disconnected (normal left inverted right x axis y axis)

Which shows my backlight has a setting range of 0-9.

Now testing the following:

echo 5 > /sys/class/backlight/acpi_video0/brightness

This does change the brightness, so I know what to monitor during boot.

Placing the following code at intervals in /etc/rc.sysinit and /etc/rc.multi reports the backlight state at different stages during boot:

echo "brightness"
cat /sys/class/backlight/acpi_video0/brightness

Following is the result in my boot log:

Wed Jun  1 19:22:23 2011: brightness
Wed Jun  1 19:22:23 2011: 9
Wed Jun  1 19:22:23 2011: ^[[1;34;40m:: ^[[1;37;40mStarting UDev Daemon^[[1;0m ^[[s^[[119G   ^[[1;34;40m[^[[0;36;40mBUSY^[[1;34;40m]^[[1;0m ^[[119G   ^[[1;34;40m[^[[1;37;40mDONE^[[1;34;40m]^[[1;0m 
Wed Jun  1 19:22:23 2011: ^[[1;34;40m:: ^[[1;37;40mTriggering UDev uevents^[[1;0m ^[[s^[[119G   ^[[1;34;40m[^[[0;36;40mBUSY^[[1;34;40m]^[[1;0m ^[[119G   ^[[1;34;40m[^[[1;37;40mDONE^[[1;34;40m]^[[1;0m 
Wed Jun  1 19:22:23 2011: brightness1
Wed Jun  1 19:22:23 2011: 9
Wed Jun  1 19:22:23 2011: ^[[1;34;40m:: ^[[1;37;40mLoading Modules^[[1;0m ^[[s^[[119G   ^[[1;34;40m[^[[0;36;40mBUSY^[[1;34;40m]^[[1;0m ^[[119G   ^[[1;34;40m[^[[1;37;40mDONE^[[1;34;40m]^[[1;0m 
Wed Jun  1 19:22:23 2011: brightness2
Wed Jun  1 19:22:23 2011: 9
Wed Jun  1 19:22:23 2011: ^[[1;34;40m:: ^[[1;37;40mWaiting for UDev uevents to be processed^[[1;0m ^[[s^[[119G   ^[[1;34;40m[^[[0;36;40mBUSY^[[1;34;40m]^[[1;0m ^[[119G   ^[[1;34;40m[^[[1;37;40mDONE^[[1;34;40m]^[[1;0m 
Wed Jun  1 19:22:23 2011: brightness3
Wed Jun  1 19:22:23 2011: 9
Wed Jun  1 19:22:23 2011: ^[[1;34;40m:: ^[[1;37;40mBringing up loopback interface^[[1;0m ^[[s^[[119G   ^[[1;34;40m[^[[0;36;40mBUSY^[[1;34;40m]^[[1;0m ^[[119G   ^[[1;34;40m[^[[1;37;40mDONE^[[1;34;40m]^[[1;0m 
Wed Jun  1 19:22:23 2011: ^[[1;34;40m:: ^[[1;37;40mChecking Filesystems^[[1;0m ^[[s^[[119G   ^[[1;34;40m[^[[0;36;40mBUSY^[[1;34;40m]^[[1;0m root: clean, 146325/1187840 files, 1043941/4749215 blocks (check in 4 mounts)
Wed Jun  1 19:22:23 2011: home: clean, 88977/3997696 files, 1121572/15972626 blocks (check in 4 mounts)
Wed Jun  1 19:22:23 2011: ^[[119G   ^[[1;34;40m[^[[1;37;40mDONE^[[1;34;40m]^[[1;0m 
Wed Jun  1 19:22:23 2011: ^[[1;34;40m:: ^[[1;37;40mMounting Local Filesystems^[[1;0m ^[[s^[[119G   ^[[1;34;40m[^[[0;36;40mBUSY^[[1;34;40m]^[[1;0m ^[[119G   ^[[1;34;40m[^[[1;37;40mDONE^[[1;34;40m]^[[1;0m 
Wed Jun  1 19:22:23 2011: ^[[119G   ^[[1;34;40m[^[[1;37;40mDONE^[[1;34;40m]^[[1;0m 
Wed Jun  1 19:22:23 2011: ^[[1;34;40m:: ^[[1;37;40mActivating Swap^[[1;0m ^[[s^[[119G   ^[[1;34;40m[^[[0;36;40mBUSY^[[1;34;40m]^[[1;0m ^[[119G   ^[[1;34;40m[^[[1;37;40mDONE^[[1;34;40m]^[[1;0m 
Wed Jun  1 09:22:23 2011: ^[[1;34;40m:: ^[[1;37;40mConfiguring Time Zone^[[1;0m ^[[s^[[119G   ^[[1;34;40m[^[[0;36;40mBUSY^[[1;34;40m]^[[1;0m ^[[119G   ^[[1;34;40m[^[[1;37;40mDONE^[[1;34;40m]^[[1;0m 
Wed Jun  1 19:22:23 2011: ^[[1;34;40m:: ^[[1;37;40mRemoving Leftover Files^[[1;0m ^[[s^[[119G   ^[[1;34;40m[^[[0;36;40mBUSY^[[1;34;40m]^[[1;0m ^[[119G   ^[[1;34;40m[^[[1;37;40mDONE^[[1;34;40m]^[[1;0m 
Wed Jun  1 19:22:23 2011: ^[[1;34;40m:: ^[[1;37;40mSetting Hostname: patrick^[[1;0m ^[[s^[[119G   ^[[1;34;40m[^[[0;36;40mBUSY^[[1;34;40m]^[[1;0m ^[[119G   ^[[1;34;40m[^[[1;37;40mDONE^[[1;34;40m]^[[1;0m 
Wed Jun  1 19:22:23 2011: ^[[1;34;40m:: ^[[1;37;40mSetting Locale: en_AU.UTF-8^[[1;0m ^[[s^[[119G   ^[[1;34;40m[^[[0;36;40mBUSY^[[1;34;40m]^[[1;0m ^[[119G   ^[[1;34;40m[^[[1;37;40mDONE^[[1;34;40m]^[[1;0m 
Wed Jun  1 19:22:23 2011: ^[[1;34;40m:: ^[[1;37;40mSetting Consoles to UTF-8 mode^[[1;0m ^[[s^[[119G   ^[[1;34;40m[^[[0;36;40mBUSY^[[1;34;40m]^[[1;0m ^[%G^[[119G   ^[[1;34;40m[^[[1;37;40mDONE^[[1;34;40m]^[[1;0m 
Wed Jun  1 19:22:24 2011: ^[[1;34;40m:: ^[[1;37;40mLoading Keyboard Map: us^[[1;0m ^[[s^[[119G   ^[[1;34;40m[^[[0;36;40mBUSY^[[1;34;40m]^[[1;0m ^[[119G   ^[[1;34;40m[^[[1;37;40mDONE^[[1;34;40m]^[[1;0m 
Wed Jun  1 19:22:24 2011: INIT: Entering runlevel: 5
Wed Jun  1 19:22:24 2011: backlight
Wed Jun  1 19:22:24 2011: 9
Wed Jun  1 19:22:24 2011: ^[[1;34;40m:: ^[[1;37;40mStarting hwclock^[[1;0m ^[[119G   ^[[1;34;40m[^[[1;35;40mBKGD^[[1;34;40m]^[[1;0m ^[[1;34;40m:: ^[[1;37;40mStarting syslog-ng^[[1;0m ^[[119G   ^[[1;34;40m[^[[1;35;40mBKGD^[[1;34;40m]^[[1;0m ^[[1;34;40m:: ^[[1;37;40mStarting D-BUS s
Wed Jun  1 19:22:25 2011: ^[[1;34;40m:: ^[[1;37;40mStarting Network^[[1;0m ^[[s^[[119G   ^[[1;34;40m[^[[0;36;40mBUSY^[[1;34;40m]^[[1;0m ^[[119G   ^[[1;34;40m[^[[1;37;40mDONE^[[1;34;40m]^[[1;0m 
Wed Jun  1 19:22:25 2011: 

As you can see, even though the backlight turns off during this sequence, it is always reported as being set to maximum.

All help greatly appreciated.

Cheers.

Offline

Board footer

Powered by FluxBB