Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] pbbuttonsd crashes on resume after sleep
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
HighOnBonsai
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 260

PostPosted: Mon Sep 19, 2005 6:58 am    Post subject: [solved] pbbuttonsd crashes on resume after sleep Reply with quote

Edit: problem solved!

For a while now I have the problem the pbbuttonsd crashes after resuming from sleep (suspend-to-ram). Though the daemon is still running it won't react on any user events anymore (like pressing the brightness buttons or closing the lid). I know that pbbuttonsd is using a message queue to process the events - the message queue is still present after resuming from sleep. After restarting the daemon everything works fine again - as long as I don't send my powerbook to sleep mode again.

Hardware: Powerbook Alu 15" (not the newest one, but the one before - got it last year April [I have no illuminated keyboard])

Software I am using:

  • Kernel: 2.6.13 (with a PCI hotfix); I had the same problem with predecessors of this kernel
  • pbbuttonsd: 0.7.1
  • cpufreqd: 2.0.0_beta4-r1 (this may not be relevant, but just in case)
  • I am using experimental drivers for my radeon card (r300) to get DRI working


Here my pbbuttonsd.conf. It is the default config, except the "replace_pmud" option I introduced myself - there is no pmud running on my system.

Code:
# Configuration file for PBButtonsd >= Version 0.5
# for complete list of options please see pbbuttonsd.conf man-page

# [SYSTEM]
#userallowed           = "paranoid"   ; user who is allowed to use IPC
autorescan            = no      ; automatic rescan of event devices
CmdTimeout            = 4

# [MODULE POWERSAVE]
onAC_policy           = performance   ; nochange, performance, custom or powersave
onAC_TimerAction      = none      ; none, suspend-to-ram, suspend-to-disk, blankscreen
onAC_CoverAction      = suspend-to-ram
onAC_KeyAction        = suspend-to-ram   ; SleepKey
onAC_SuspendTime      = 0      ; time in 1/10 seconds
onAC_DimTime          = 0      ; time in 1/10 seconds

onBattery_policy      = powersave
onBattery_TimerAction = suspend-to-ram   ; none, suspend-to-ram, suspend-to-disk, blankscreen
onBattery_CoverAction = suspend-to-ram
onBattery_KeyAction   = suspend-to-ram   ; SleepKey
onBattery_SuspendTime = 36000      ; time in 1/10 seconds (1 hour)
onBattery_DimTime     = 600      ; time in 1/10 seconds

SleepKey              = 116
SleepKeyDelay         = 0      ; values > 0 may be dangerous, if the power key is used to trigger sleep
BWL_first             = 22      ; first battery warnlevel, time in minutes
BWL_second            = 10      ; second battery warnlevel, time in minutes
BWL_last              = 3      ; last battery warnlevel, time in minutes
Script_PMCS           = "/etc/power/pmcs-pbbuttonsd %s %s %s"
EmergencyAction       = sleep      ; action, if battery is critically low
HeartbeatBeep         = no      ; beep, if nothing else showed that the computer lives
CPULoad_sleeplock     = yes
CPULoad_min           = 20      ; value in percent
CPULoad_period        = 20      ; time in seconds
NETLoad_sleeplock     = yes
NETLoad_min           = 4096      ; traffic in Bytes/s
NETLoad_period        = 20      ; time in seconds
NETLoad_device        = "eth1"

# [MODULE DISPLAY]
#LCD_Brightness        = 8      ; initial LCD brightness level
LCD_FadingSpeed       = 5      ; 0 = no smooth fading
LCD_AutoAdjust        = no      ; only on Aluminum PowerBooks
LCD_IllumUpKey        = 225
LCD_IllumDownKey      = 224
LCD_Threshold         = 94
LCD_AutoAdjMin_Bat    = 2      ; autoadjust parameter
LCD_AutoAdjMax_Bat    = 7
LCD_AutoAdjMin_AC     = 1
LCD_AutoAdjMax_AC     = 15
#KBD_Brightness        = 0      ; initial keyboard illumination level
KBD_OnBrightness      = 5      ; initial level if KBD on/off key is pressed
KBD_FadingSpeed       = 5      ; 0 = no smooth fading
KBD_AutoAdjust        = yes      ; only on Aluminum PowerBooks
KBD_IllumUpKey        = 230
KBD_IllumDownKey      = 229
KBD_IllumOnKey        = 228
KBD_Threshold         = 28      ; only on Aluminum PowerBooks
dev_FrameBuffer       = "/dev/fb0"
UseFBBlank            = no
DimFullyDark          = yes
CRT_MirrorKey         = 65 + ctrl

# [MODULE MIXER]
SoundSystem           = ALSA      ; none, auto, OSS or ALSA
#Volume                = 50      ; initial volume level
Speakers_muted        = no      ; mute after startup?
VolumeUpKey           = 115
VolumeDownKey         = 114
MuteKey               = 113
OSS_Mixer             = "/dev/mixer"   ; settings for OSS
OSS_Channels          = "volume, speaker"
ALSA_Card             = "default"   ; settings for ALSA
ALSA_Elements         = "Master, 'PC Speaker'"
MixerInitDelay        = no

# [MODULE CDROM]
dev_CDROM             = "/dev/cdrom"
EjectCDKey            = 161
EjectCDKeyDelay       = 0

# [MODULE PMAC]
dev_PMU               = "/dev/pmu"
dev_ADB               = "/dev/adb"
TPModeUpKey           = 225 + alt
TPModeDownKey         = 224 + alt
TPMode                = drag
KBDMode               = fkeysfirst
Batlog                = none
NoTapTyping           = no

replace_pmud          = yes


My message log when going to sleep mode:

Code:

...
Sep 19 07:11:22 acmobile pbbuttonsd: INFO: Script '/etc/power/pmcs-pbbuttonsd suspend ac ram' launched and exited normally
Sep 19 07:11:23 acmobile eth0: suspending, WakeOnLan disabled
Sep 19 07:11:24 acmobile radeonfb (0000:00:10.0): suspending to state: 3...
Sep 19 07:11:24 acmobile uninorth-agp: disabling AGP on device 0000:00:10.0
Sep 19 07:11:24 acmobile uninorth-agp: disabling AGP on bridge 0000:00:0b.0
# Resuming from sleep
Sep 19 07:11:24 acmobile radeonfb (0000:00:10.0): resuming from state: 3...
Sep 19 07:11:24 acmobile PCI: Enabling device 0000:00:10.0 (0000 -> 0003)
Sep 19 07:11:24 acmobile radeon: PAD_CTLR_STRENGTH doesn't stabilize !
Sep 19 07:11:24 acmobile agpgart: Putting AGP V2 device at 0000:00:0b.0 into 4x mode
Sep 19 07:11:24 acmobile agpgart: Putting AGP V2 device at 0000:00:10.0 into 4x mode
Sep 19 07:11:24 acmobile PCI: Enabling device 0001:10:1b.0 (0000 -> 0002)
Sep 19 07:11:25 acmobile PCI: Enabling device 0001:10:1b.1 (0000 -> 0002)
Sep 19 07:11:25 acmobile PCI: Enabling device 0001:10:1b.2 (0000 -> 0002)
Sep 19 07:11:25 acmobile ehci_hcd 0001:10:1b.2: park 0
Sep 19 07:11:25 acmobile ehci_hcd 0001:10:1b.2: USB 2.0 restarted, EHCI 1.00, driver 10 Dec 2004
Sep 19 07:11:25 acmobile eth1: New link status: Connected (0001)
Sep 19 07:11:25 acmobile cardmgr[6773]: executing: './network resume eth1 2>&1'
Sep 19 07:11:25 acmobile cardmgr[6773]: +  WARNING: "net.eth1" has already been started.
Sep 19 07:11:25 acmobile rc-scripts: WARNING: "net.eth1" has already been started.
Sep 19 07:11:25 acmobile usb 3-1: USB disconnect, address 3
Sep 19 07:11:25 acmobile usb 3-1: new low speed USB device using ohci_hcd and address 4
Sep 19 07:11:25 acmobile input: USB HID v1.10 Mouse [Logitech USB Receiver] on usb-0001:10:1b.0-1
Sep 19 07:11:26 acmobile eth0: resuming
Sep 19 07:11:26 acmobile PHY ID: 1410cc1, addr: 0
Sep 19 07:11:27 acmobile hda: Enabling Ultra DMA 5
Sep 19 07:11:33 acmobile hdc: Enabling MultiWord DMA 2
Sep 19 07:11:33 acmobile adb: starting probe task...
Sep 19 07:11:33 acmobile adb devices: [2]: 2 c4 [3]: 3 1 [7]: 7 1f
Sep 19 07:11:33 acmobile ADB keyboard at 2, handler 1
Sep 19 07:11:33 acmobile ADB mouse at 3, handler set to 4 (trackpad)
Sep 19 07:11:33 acmobile adb: finished probe task...
Sep 19 07:11:33 acmobile pbbuttonsd: INFO: Script '/etc/power/pmcs-pbbuttonsd resume ac ram' launched and exited normally
Sep 19 07:11:33 acmobile agpgart: Putting AGP V2 device at 0000:00:0b.0 into 4x mode
Sep 19 07:11:33 acmobile agpgart: Putting AGP V2 device at 0000:00:10.0 into 4x mode
Sep 19 07:11:33 acmobile [drm] Loading R300 Microcode


Help would be appreciated!

Thank you!


Christopher
_________________
Are YOU high - on bonsai?


Last edited by HighOnBonsai on Thu Oct 06, 2005 6:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Mon Sep 19, 2005 7:41 am    Post subject: Reply with quote

more or less the same behaviour here :( Ifplugd dameon also stalls forever and does not react to any event.

Any ideas ? Is this

cheers
Back to top
View user's profile Send private message
HighOnBonsai
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 260

PostPosted: Tue Sep 20, 2005 4:39 pm    Post subject: Reply with quote

Does no-one else (except me and gringo) have the same problems with pbbuttonsd?

Christopher
_________________
Are YOU high - on bonsai?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Sep 20, 2005 6:45 pm    Post subject: Reply with quote

Have you tried it without the DRI drivers? I'm not sure how stable suspend and resume is for them.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Wed Sep 21, 2005 8:57 am    Post subject: Reply with quote

i dont believe DRI is the cause here, or at least _the_ cause. I dont use them (right now) and have been experiencing the same symptoms since 2.6.11 or something like that.

From what ive read this is expected behaviour, sleep is kinda new and troubles like this are expected. Give it some time and it should get solved. At least we dont have to rmmod/modpobe the usb stuff now after recovering ;)

JoseJX, correct me if im wrong pls. Dont you have the same problems ?

cheers
Back to top
View user's profile Send private message
mattmatteh
Guru
Guru


Joined: 10 Mar 2004
Posts: 449
Location: near chicago

PostPosted: Wed Sep 21, 2005 5:51 pm    Post subject: Reply with quote

ibook g4 and using ppc not ~ppc and all is good. i was thinking of upgrading the kernel to fix the ntp bug when it sleeps. but guess i shouldnt till its stable

matt
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Wed Sep 21, 2005 6:09 pm    Post subject: Reply with quote

Quote:
ibook g4 and using ppc not ~ppc and all is good.


ok, thanx, will give the stable version a shot later. Maybe that helps.

cheers
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Sep 21, 2005 6:38 pm    Post subject: Reply with quote

I've got a PB G4 500 with the r128 and sleep has been stable for ages for this machine. I'd expect that it's kernel related, 2.6.13 introduced a further reworking of the Radeon sleep code from 2.6.12 and I expect more patches in 2.6.14. 2.6.13 should be fine as long as you use >= 2.6.13.1-vanilla or 2.6.13-r1-gentoo since those have a PCI patch for ATI cards required for booting. If that doesn't work, try a vanilla 2.6.14_rc kernel, and give us some feedback. ;)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Wed Sep 21, 2005 7:04 pm    Post subject: Reply with quote

Quote:
I've got a PB G4 500 with the r128 and sleep has been stable for ages for this machine


oops, my fault then, i thought i saw you talking about the same problems in another thread. Sorry.

Quote:
I'd expect that it's kernel related


yes, thats my opinion too, i have tried a lot of kernels in the last few months in this powerbook, most of them patched though.
I mean, the sleep process is quite stable here, didnt crashed for a while now, only the pbbuttons daemon sucks cpu and does not react to most of the events after recovering.

Will try plain rc2 and let you know ;)

thanx
Back to top
View user's profile Send private message
HighOnBonsai
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 260

PostPosted: Thu Sep 22, 2005 7:12 am    Post subject: Reply with quote

I tried sleep mode with DRI disabled - the same result: pbbuttonsd doesnt react anymore after resuming (although it is still running [it's no zombie!!]).

:-( Hmmm.... I guess we have to wait for a better sleep support!

Edit: Kernel version: 2.6.14-rc1


Christopher
_________________
Are YOU high - on bonsai?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Sep 22, 2005 2:30 pm    Post subject: Reply with quote

Can you try building pbbuttonsd with USE="debug", then start it from an ssh console on another machine so you can monitor the debug info?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
HighOnBonsai
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 260

PostPosted: Thu Sep 22, 2005 4:01 pm    Post subject: Reply with quote

Weird!! 8O I recompiled pbbuttonsd with debug enabled and watched the output: No errors messages or message that would point me to the solution of the problem. BUT: After resuming the pbbuttonsd is still running! I then recompiled the daemon without debug: It was crashing again after resume. Now I have the debug version again working flawless... thanks! :-)

Anyway, here the output of the debug version when resuming:

Code:
Inputhandler registered:   0001 0001         
Inputhandler registered:   22c4 0001         
Inputhandler registered:   771f 0001         
Inputhandler registered:   3301 0001         
Inputhandler registered:   1000 05ac         
Inputhandler registered:   1000 05ac         
Inputhandler registered:   c50a 046d         
Inputhandler registered:   0001 001f         
Query     :   TAG_SLEEPSUPPORTED       : 1                   
Query     : P TAG_BACKLIGHTMAX         : 15                   
Query     : P TAG_BACKLIGHTLEVEL       : 15                   
Query     : P TAG_KEYBLIGHTMAX         : 15                   
Config    : P TAG_KEYBLIGHTLEVEL       : 0                   
IPC       :   TAG_TPMODE               : 2                   
Config    :   TAG_AUTORESCAN           : 0                   
Config    :   TAG_TIMEFORCMD           : 4                   
Config    :   TAG_ONAC_POLICY          : 3                   
Config    :   TAG_ONAC_TIMERACTION     : 0                   
Config    :   TAG_ONAC_COVERACTION     : 1                   
Config    :   TAG_ONAC_KEYACTION       : 1                   
Config    :   TAG_ONAC_TIMESUSPEND     : 0                   
Config    :   TAG_ONAC_TIMEDIM         : 0                   
Config    :   TAG_ONBATT_POLICY        : 1                   
Config    :   TAG_ONBATT_TIMERACTION   : 1                   
Config    :   TAG_ONBATT_COVERACTION   : 1                   
Config    :   TAG_ONBATT_KEYACTION     : 1                   
Config    :   TAG_ONBATT_TIMESUSPEND   : 36000                   
Config    :   TAG_ONBATT_TIMEDIM       : 600                   
Config    :   TAG_SLEEPKEY             : 116                   
Config    :   TAG_SLEEPMOD             : 0                   
Config    :   TAG_SLEEPKEYDELAY        : 0                   
Config    :   TAG_BWLFIRST             : 22                   
Config    :   TAG_BWLSECOND            : 10                   
Config    :   TAG_BWLLAST              : 3                   
Config    :   TAG_SCRIPTPMCS           : "/etc/power/pmcs-pbbuttonsd %s %s %s"                   
Config    :   TAG_EMERGENCYACTION      : 0                   
Config    :   TAG_HEARTBEATBEEP        : 0                   
Config    :   TAG_CPULOADSLEEPLOCK     : 1                   
Config    :   TAG_CPULOADMIN           : 20                   
Config    :   TAG_CPULOADPERIOD        : 20                   
Config    :   TAG_NETLOADSLEEPLOCK     : 1                   
Config    :   TAG_NETLOADMIN           : 4096                   
Config    :   TAG_NETLOADPERIOD        : 20                   
Config    :   TAG_NETLOADDEV           : "eth1"                   
Config    :   TAG_LCDFADINGSPEED       : 5                   
Config    :   TAG_LCDAUTOADJUST        : 0                   
Config    :   TAG_LCDILLUMUPKEY        : 225                   
Config    :   TAG_LCDILLUMUPMOD        : 0                   
Config    :   TAG_LCDILLUMDOWNKEY      : 224                   
Config    :   TAG_LCDILLUMDOWNMOD      : 0                   
Config    :   TAG_LCDTHRESHOLD         : 94                   
Config    :   TAG_LCDAUTOADJMINBAT     : 2                   
Config    :   TAG_LCDAUTOADJMAXBAT     : 7                   
Config    :   TAG_LCDAUTOADJMINAC      : 1                   
Config    :   TAG_LCDAUTOADJMAXAC      : 15                   
Config    :   TAG_KBDONBRIGHTNESS      : 5                   
Config    :   TAG_KBDFADINGSPEED       : 5                   
Config    :   TAG_KBDAUTOADJUST        : 1                   
Config    :   TAG_KBDILLUMUPKEY        : 230                   
Config    :   TAG_KBDILLUMUPMOD        : 0                   
Config    :   TAG_KBDILLUMDOWNKEY      : 229                   
Config    :   TAG_KBDILLUMDOWNMOD      : 0                   
Config    :   TAG_KBDILLUMONKEY        : 228                   
Config    :   TAG_KBDILLUMONMOD        : 0                   
Config    :   TAG_KBDTHRESHOLD         : 28                   
Config    :   TAG_FRAMEBUFFERDEVICE    : "/dev/fb0"                   
Config    :   TAG_BLANKFRAMEBUFFER     : 0                   
Config    :   TAG_DIMFULLYDARK         : 1                   
Config    :   TAG_CRTMIRRORKEY         : 65                   
Config    :   TAG_CRTMIRRORMOD         : 4                   
Config    :   TAG_SOUNDSYSTEMCFG       : 3                   
Config    :   TAG_MUTE                 : 0                   
Config    :   TAG_VOLUMEUPKEY          : 115                   
Config    :   TAG_VOLUMEUPMOD          : 0                   
Config    :   TAG_VOLUMEDOWNKEY        : 114                   
Config    :   TAG_VOLUMEDOWNMOD        : 0                   
Config    :   TAG_MUTEKEY              : 113                   
Config    :   TAG_MUTEMOD              : 0                   
Config    :   TAG_MIXERCHANNELS        : "volume, speaker"                   
Config    :   TAG_MIXERCARD            : "default"                   
Config    :   TAG_MIXERELEMENTS        : "Master, 'PC Speaker'"                   
Config    :   TAG_MIXERINITDELAY       : 0                   
Config    :   TAG_CDROMDEVICE          : "/dev/cdrom"                   
Config    :   TAG_EJECTCDKEY           : 161                   
Config    :   TAG_EJECTCDMOD           : 0                   
Config    :   TAG_EJECTCDKEYDELAY      : 0                   
Config    :   TAG_PMUDEVICE            : "/dev/pmu"                   
Config    :   TAG_ADBDEVICE            : "/dev/adb"                   
Config    :   TAG_TPMODEUPKEY          : 225                   
Config    :   TAG_TPMODEUPMOD          : 2                   
Config    :   TAG_TPMODEDOWNKEY        : 224                   
Config    :   TAG_TPMODEDOWNMOD        : 2                   
Config    :   TAG_TPMODE               : 2                   
Config    :   TAG_KBDMODE              : 1                   
Config    :   TAG_BATLOG               : 0                   
Config    :   TAG_NOTAPTYPING          : 0                   
Config    : P TAG_CFGNAME              : "/etc/pbbuttonsd.conf"                   
Query     :   TAG_IDENTITY             : "iBook/G3 PB Pismo/G4 PB Titanium (PMU version: 12)"                   
pbbuttonsd 0.7.1: iBook/G3 PB Pismo/G4 PB Titanium (PMU version: 12)
Config    : P TAG_POWERCHANGED         : 1                   


The following is the output after sleeping and resuming:

Code:
IPC       :   TAG_SLEEPINSECONDS       : 0                   
Config    : P TAG_REQUESTSLEEP         : 0                   
Config    : P TAG_PREPAREFORSLEEP      : 0                   
Query     : P TAG_BACKLIGHTLEVEL       : 15                   
Config    : P TAG_BRIGHTNESSOP         : 2                   
Query     :   TAG_SLEEPSUPPORTED       : 1                   
Config    : P TAG_WAKEUPFROMSLEEP      : 0                   
Inputhandler unregistered:   c50a 046d         
Inputhandler registered:   0001 001f         
Inputhandler unregistered:   0001 001f         
Inputhandler registered:   c50a 046d   




Christopher
_________________
Are YOU high - on bonsai?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Sep 22, 2005 4:07 pm    Post subject: Reply with quote

Can you provide the output of emerge info?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
HighOnBonsai
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 260

PostPosted: Thu Sep 22, 2005 4:10 pm    Post subject: Reply with quote

Yes of course:

Code:
Portage 2.0.52-r1 (default-linux/ppc/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.14-rc1 ppc)
=================================================================
System uname: 2.6.14-rc1 ppc 7447/7457, altivec supported
Gentoo Base System version 1.12.0_pre8
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=7450 -mabi=altivec -maltivec -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -mcpu=7450 -mabi=altivec -maltivec -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks prelink sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X alsa altivec berkdb bitmap-fonts cdr crypt curl dvd eds emboss esd fam fbcon flac gd gdbm gif gnome gpm gstreamer gtk gtk+ gtk2 imagemagick imlib insecure-drivers ipv6 java jpeg junit libwww mad motif mozilla mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl pcmcia pdflib perl plotutils png python readline samba sdl sheep slang spell ssl tcpd tetex tiff truetype truetype-fonts type1-fonts unicode vorbis wlan xine xml xml2 xmms xv zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS


Christopher
_________________
Are YOU high - on bonsai?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Sep 22, 2005 4:19 pm    Post subject: Reply with quote

Well, that's pretty standard. :P My only guess is that the debug information slows it down preventing race conditions. I would contact the author, he might not be aware of the problem. I know the last few versions fixed a number of race conditions already, perhaps here's another. :)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Fri Sep 23, 2005 10:54 pm    Post subject: Reply with quote

just trying to confirm: same behaviour with latest git here too.
Should we just file a bug or better mail him ?

thanx
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Sep 24, 2005 12:54 am    Post subject: Reply with quote

It's not a Gentoo bug afaik, I'd mail upstream and see what he says.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
HighOnBonsai
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 260

PostPosted: Sun Sep 25, 2005 3:16 pm    Post subject: Reply with quote

I wrote the developer of pbbuttonsd - let's see what his opinion is!


Christopher
_________________
Are YOU high - on bonsai?
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Tue Sep 27, 2005 7:59 am    Post subject: Reply with quote

HighOnBonsai wrote:
I wrote the developer of pbbuttonsd - let's see what his opinion is!
Christopher


ok, let me know of you need some more input or something.

EDIT: forgot to tell ya: cpudyn works great after sleeping :) or at least does not hang like cpufreqd.

thanks
Back to top
View user's profile Send private message
HighOnBonsai
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 260

PostPosted: Sun Oct 02, 2005 1:05 pm    Post subject: Reply with quote

I have some good news: With the help of Matthias (developer of the pbbuttonsd) I just found out that the -O2 cflags generates bad code. This is also the reason why the debug version works fine: It is compiled with no optimizations.

Manually replacing the -O2 option with -O0 or -O1 solved the problem (the CFLAGS in make.conf are ignored when emerging pbbuttonsd - you need adjust the settings in the Makefiles by hand).

I'll keep you informed!

@gringo: Thanks for this info - I will try cpudyn!


Christopher
_________________
Are YOU high - on bonsai?
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Mon Oct 03, 2005 8:19 am    Post subject: Reply with quote

thanks for your efforts Christopher :D
Will have a look to this and report back!

cheers
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Wed Oct 05, 2005 10:33 am    Post subject: Reply with quote

yep, that seem to have helped :D pbbuttonsd does not crash anymore :D

Thanx
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Oct 05, 2005 5:54 pm    Post subject: Reply with quote

New pbbuttonsd is in portage and filters -O? to force -O1 which should fix this problem.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
scoobydu
Veteran
Veteran


Joined: 16 Feb 2003
Posts: 1076
Location: 'Mind the Gap'

PostPosted: Wed Oct 05, 2005 8:58 pm    Post subject: Reply with quote

Nice one guys! been away and just read the thread.


I too had the same problem, so will try the new version.

Thanks all for the efforts!

emerge syncing now :)

scooby
_________________
Tyan Tiger K8W, 2xOpteron 240,Powerbook5,6 15" 1.5g, Macbook Black 2g, Mac Mini 1g, Ipod P60g.
| Linux - From a windows user perspective|
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Thu Oct 06, 2005 7:44 am    Post subject: Reply with quote

Quote:
New pbbuttonsd is in portage and filters -O? to force -O1 which should fix this problem.


awesome, thanks !

Quote:
emerge syncing now


ditto ;)

cheers
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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