Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 298085 - app-laptop/pbbuttonsd-0.8.1-r2: LCD_Brightness=0 causes trouble
Summary: app-laptop/pbbuttonsd-0.8.1-r2: LCD_Brightness=0 causes trouble
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High normal
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-23 11:48 UTC by Sebastian Koehler
Modified: 2010-01-12 20:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Koehler 2009-12-23 11:48:57 UTC
I try to dim the display for my iBook G4 (late 2004) during startup. For that reason I've added LCD_Brightness=0 to pbbuttonsd.cnf. The display is dark after bootup. The brightness can be adjusted as usual using keyboard. With this setting in place, I'm not able to stop the daemon using rc script.

plex ~ # cat /etc/pbbuttonsd.cnf
# Configuration file for pbbuttonsd >= version 0.8.0
# For complete list of options please see pbbuttonsd.cnf man-page.
# For description of the file format please see
#    http://freedesktop.org/Standards/desktop-entry-spec.

[SYSTEM]
#userallowed=paranoid
CmdTimeout=8
autorescan=true

[MODULE DISPLAY]
LCD_Brightness=0
LCD_FadingSpeed=448
LCD_AutoadjMode=linear
LCD_AutoadjParm_onBattery=0,1,94,54
LCD_AutoadjParm_onAC=0,1,94,100
#KBD_OnBrightness=21
KBD_FadingSpeed=0
KBD_AutoadjMode=hysteresis
KBD_AutoadjParm_onBattery=10,100,28,0
KBD_AutoadjParm_onAC=10,100,28,0
Device_FB=/dev/fb0
UseFBBlank=false
DimFullyDark=false
CRT_MirrorKey=65 + ctrl

[MODULE CDROM]
Device=/dev/cdrom
EjectCDKey=161
EjectCDKeyDelay=0

[MODULE MIXER OSS]
Device=/dev/mixer
Channels=volume, speaker

[MODULE MIXER ALSA]
Card=default
Channels=Master, PC Speaker

[MODULE PMAC]
TPModeUpKey=225 + alt
TPModeDownKey=224 + alt
TPMode=drag
KBDMode=fkeysfirst
Batlog=none
NoTapTyping=false

[MODULE POWERSAVE]
onAC_Policy=performance
onAC_TimerAction=none
onAC_CoverAction=suspend-to-ram
onAC_KeyAction=suspend-to-ram
onAC_SuspendTime=0
onAC_DimTime=0
onBattery_Policy=powersave
onBattery_TimerAction=suspend-to-ram
onBattery_CoverAction=suspend-to-ram
onBattery_KeyAction=suspend-to-ram
onBattery_SuspendTime=3000
onBattery_DimTime=600
SleepKey=116
SleepKeyDelay=0
BWL_First=22
BWL_Second=10
BWL_Last=3
Script_PMCS=/etc/power/pmcs-pbbuttonsd %s %s %s
EmergencyAction=sleep
HeartbeatBeep=false
CPULoad_sleeplock=true
CPULoad_min=20
CPULoad_period=20
NETLoad_sleeplock=true
NETLoad_min=4096
NetLoad_period=20
NETLoad_device=eth0
IBAM_DataDir=/var/lib/ibam

Reproducible: Always

Steps to Reproduce:
1. add LCD_Brightness=0 to /etc/pbbuttonsd.cnf
2. restart the system
3. try to stop the daemon using rc script (/etc/init.d/pbbuttonsd stop)
Actual Results:  
Unable to end process, need to kill the process using kill -9

Expected Results:  
It should be possible to stop the process using rc script.

plex ~ # emerge --info
Portage 2.1.6.13 (default/linux/powerpc/ppc32/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r8 ppc)
=================================================================
System uname: Linux-2.6.30-gentoo-r8-ppc-7447A,_altivec_supported-with-gentoo-1.12.13
Timestamp of tree: Tue, 22 Dec 2009 07:45:02 +0000
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.6.3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ ftp://de-mirror.org/distro/gentoo/ "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="aac acl altivec apm bash-completion berkdb bzip2 cli cracklib crypt curl cxx daemon dri dvd dvdread encode exif expat fbcon fbcondecor ffmpeg flac fortran gdbm gpm iconv javascript jpeg logging matroska mng modules mp3 mudflap mysql ncurses network nls nptl nptlonly ogg openmp pam pcre perl png ppc pppd python readline reflection remote rtsp session softquota spl ssl stream sysfs syslog taglib tcpd truetype unicode upnp vlc vorbis winbind xmlrpc xorg xvid zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage tdfx trident voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Sebastian Koehler 2009-12-28 18:48:44 UTC
It seems that the root cause of this issue is related to mypiece of Apple hardware. I've double tested and it seems that the daemon is not the culprit here. I've noticed a situation where my iBook is restarted and the display is flipping trough different colors during boot time. (red, blue, yellow, white...) A remote log on is possible and the operating system is working fine but the console is not reachable. In that situation the daemon "hangs" and pulls a lot of cpu power.

Have someone seen similar issues with Apple hardware and framebuffer? The notebook must be fully powered off and restarted to resolv that issue.