Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on PPC
  • Search

Test patch for sleep on AluBooks

Have a PowerPC specific problem? This is the spot.
Post Reply
Advanced search
18 posts • Page 1 of 1
Author
Message
JoseJX
Retired Dev
Retired Dev
Posts: 2774
Joined: Sun Apr 28, 2002 8:21 pm
Contact:
Contact JoseJX
Website

Test patch for sleep on AluBooks

  • Quote

Post by JoseJX » Wed Oct 27, 2004 8:26 am

Please see the forum topic: http://forums.gentoo.org/viewtopic.php? ... db306079e0
since this patch has been updated since this post! Thanks!

benh released a patch to allow sleep on AluBooks with ATi chipsets. This patch does not fix sleep on iBook G4s or nVidia based chipsets.

http://lists.debian.org/debian-powerpc/ ... 00438.html

The patch applies cleanly to gentoo-dev-sources-2.6.9-r1, assuming you have this kernel linked to /usr/src/linux and the patch has been unpacked and is in your home directory:

Code: Select all

 
cd /usr/src/linux
patch -p1 < ~/albook-sleep.diff
Rebuild your kernel with power management, try it out and let us know how it works :)

I've mirrored the patch here: http://dev.gentoo.org/~josejx/albook-sleep.diff.bz2
Last edited by JoseJX on Sat Dec 11, 2004 8:48 am, edited 2 times in total.
Top
gringo
Advocate
Advocate
User avatar
Posts: 3793
Joined: Sun Apr 27, 2003 10:25 am

  • Quote

Post by gringo » Wed Oct 27, 2004 9:31 am

benh released a patch to allow sleep on AluBooks with ATi chipsets.
great, thanks, will try out and let ya know how it works !

cheers
Error: Failing not supported by current locale
Top
sebug
n00b
n00b
Posts: 1
Joined: Wed Oct 27, 2004 9:16 pm

Sleep patch works on PB 15" Aluminium

  • Quote

Post by sebug » Wed Oct 27, 2004 9:26 pm

As far as I can see, everything works fine. There is some white, then violet text on black screen before I get my X11 back, messages like "resume is unsafe", but everything displays ok afterwards.
Top
blubbfisch
n00b
n00b
Posts: 55
Joined: Sun Oct 19, 2003 9:28 am
Location: World->Pacific->New Zealand->Hamilton
Contact:
Contact blubbfisch
Website

  • Quote

Post by blubbfisch » Wed Oct 27, 2004 11:53 pm

yep, seems to work for me too. sometimes a x-console-x switch seems to be necessary to get rid of the occasional flicker.

have fun*

Niklas
Top
colinleroy
n00b
n00b
Posts: 50
Joined: Mon Nov 24, 2003 8:00 am

Resume is unsafe

  • Quote

Post by colinleroy » Thu Oct 28, 2004 7:43 am

a Debian User, David Woodhouse, fixed the "resume is unsafe" problem by using the following patch:

Code: Select all


--- linux-2.6.9/drivers/usb/core/hub.c.susp	2004-10-27 17:30:39.796999176 +0100
+++ linux-2.6.9/drivers/usb/core/hub.c	2004-10-27 17:31:49.991979112 +0100
@@ -1527,12 +1527,12 @@ static int __usb_suspend_device (struct 
 			 * even for drivers that can't suspend.
 			 */
 			if (!driver->suspend || state > PM_SUSPEND_MEM) {
-#if 1
+#if 0
 				dev_warn(&intf->dev, "resume is unsafe!\n");
 #else
-				down_write(&usb_bus_type.rwsem);
+				down_write(&usb_bus_type.subsys.rwsem);
 				device_release_driver(&intf->dev);
-				up_write(&usb_bus_type.rwsem);
+				up_write(&usb_bus_type.subsys.rwsem);
 #endif
Top
gnomeza
Tux's lil' helper
Tux's lil' helper
Posts: 97
Joined: Wed Dec 31, 2003 2:32 pm
Contact:
Contact gnomeza
Website

OT: console switch

  • Quote

Post by gnomeza » Thu Oct 28, 2004 9:16 am

blubbfisch wrote:yep, seems to work for me too. sometimes a x-console-x switch seems to be necessary to get rid of the occasional flicker.
Off topic but, what X version are you using that you can still do the x-console-x switch? It's been broken on my alubook 15" since I moved to xorg-6.8.0.
Top
JoseJX
Retired Dev
Retired Dev
Posts: 2774
Joined: Sun Apr 28, 2002 8:21 pm
Contact:
Contact JoseJX
Website

  • Quote

Post by JoseJX » Thu Oct 28, 2004 9:59 am

In the InputDevice Section, change macintosh in:

Code: Select all

Option "XkbModel" "macintosh"
to pc104 or pc105. This should fix the problem. If the line doesn't exist, add it.
Top
HighOnBonsai
Apprentice
Apprentice
User avatar
Posts: 260
Joined: Mon Jan 05, 2004 10:20 am

  • Quote

Post by HighOnBonsai » Thu Oct 28, 2004 6:19 pm

It works great! Wohoo!!



Christopher
Are YOU high - on bonsai?
Top
blubbfisch
n00b
n00b
Posts: 55
Joined: Sun Oct 19, 2003 9:28 am
Location: World->Pacific->New Zealand->Hamilton
Contact:
Contact blubbfisch
Website

Re: OT: console switch

  • Quote

Post by blubbfisch » Thu Oct 28, 2004 9:47 pm

gnomeza wrote: Off topic but, what X version are you using that you can still do the x-console-x switch? It's been broken on my alubook 15" since I moved to xorg-6.8.0.
bugger, you're right. I still had xorg-6.7 running. after the update sleep still works, but console-switch is gone, no matter what you put into the conf... :-(

have fun* (nevertheless)

Niklas
Top
JoseJX
Retired Dev
Retired Dev
Posts: 2774
Joined: Sun Apr 28, 2002 8:21 pm
Contact:
Contact JoseJX
Website

  • Quote

Post by JoseJX » Fri Oct 29, 2004 12:45 am

Can you post just the keyboard InputDevice section of your xorg.conf? Thanks.
Top
blubbfisch
n00b
n00b
Posts: 55
Joined: Sun Oct 19, 2003 9:28 am
Location: World->Pacific->New Zealand->Hamilton
Contact:
Contact blubbfisch
Website

  • Quote

Post by blubbfisch » Fri Oct 29, 2004 4:44 am

Code: Select all

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"

        Option  "XkbModel"      "macintosh"
        Option  "XkbLayout"     "de"
        Option  "XkbVariant"    "nodeadkeys"
EndSection
And I've tried to play with
Option "DontVTSwitch" "Off"
in the ServerLayout section

Have Fun*
Top
JoseJX
Retired Dev
Retired Dev
Posts: 2774
Joined: Sun Apr 28, 2002 8:21 pm
Contact:
Contact JoseJX
Website

  • Quote

Post by JoseJX » Fri Oct 29, 2004 12:27 pm

Change it to this:

Code: Select all

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"

        Option  "XkbModel"      "pc105"
        Option  "XkbLayout"     "de"
        Option  "XkbVariant"    "nodeadkeys"
EndSection
Top
blubbfisch
n00b
n00b
Posts: 55
Joined: Sun Oct 19, 2003 9:28 am
Location: World->Pacific->New Zealand->Hamilton
Contact:
Contact blubbfisch
Website

  • Quote

Post by blubbfisch » Sat Oct 30, 2004 1:35 am

Right, OK, now I can switch to the console, but the keyboard layout is seriously b0rked....

How can I get the Mode_switch key back?
I used to have those in my .Xmodmap working well together with the "macintosh" layout:

Code: Select all

!! Apple workarounds
keycode 64 = Mode_switch
keycode 115 = Alt_L
remove Mod4 = Alt_L
add Mod1 = Alt_L
which let me access the fancy stuff like @²¼, etc... now I seem to have a German pc-keyboard mapping, which i no good, since the German mac mapping is different!

Have fun*

Niklas
Top
brianm
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 78
Joined: Tue Aug 17, 2004 2:13 pm
Location: Aurora, Illinois, USA
Contact:
Contact brianm
Website

  • Quote

Post by brianm » Tue Nov 02, 2004 5:31 pm

props to benh
will try... :D
Registered Linux User Nr # 319050
Athlon 64 2.2 @2.5Ghz/1gb RAM/WD Raptors/Nvidia 6800 GT
Aluminum Powerbook G4 (12")
Top
Hippi@Bacarni
n00b
n00b
User avatar
Posts: 53
Joined: Mon Mar 08, 2004 9:04 pm
Location: Hannover, DE

  • Quote

Post by Hippi@Bacarni » Sat Dec 11, 2004 8:08 am

Hi,
patched teh 2.6.9-gentoo-r9 and it works fine :D Going to sleep from console and from xorg6.8

I love it!
Top
JoseJX
Retired Dev
Retired Dev
Posts: 2774
Joined: Sun Apr 28, 2002 8:21 pm
Contact:
Contact JoseJX
Website

  • Quote

Post by JoseJX » Sat Dec 11, 2004 8:49 am

Please try the newer version of the patch instead, it fixes a large number of problems with the one given here.

Thanks!
Top
Hippi@Bacarni
n00b
n00b
User avatar
Posts: 53
Joined: Mon Mar 08, 2004 9:04 pm
Location: Hannover, DE

  • Quote

Post by Hippi@Bacarni » Sat Dec 11, 2004 1:05 pm

okay. and where can i find the patch. I just the one at the beginnig of this thread. And can I patch the same kernel again, or do i have to get a new unpatched one?
Top
JoseJX
Retired Dev
Retired Dev
Posts: 2774
Joined: Sun Apr 28, 2002 8:21 pm
Contact:
Contact JoseJX
Website

  • Quote

Post by JoseJX » Sun Dec 12, 2004 2:29 am

Please see the link I posted at the top of this thread. You'll probably need to remerge the kernel and apply the patch to clean sources.
Top
Post Reply

18 posts • Page 1 of 1

Return to “Gentoo on PPC”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy