Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to select timer by using kernel parameter?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
MACHINE
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2004
Posts: 141
Location: Earth

PostPosted: Wed Mar 22, 2006 2:46 am    Post subject: How to select timer by using kernel parameter? Reply with quote

I just install Kernel 2.6.16, and PM_TIMER is automatically started instead of HPET_TIMER.
My system (Acer TravelMate 3001) always hangs up by using PM_TIMER no idea why.
However, since 2.6.16, i can no longer find the PM_TIMER option and no idea how to disable it.
So how to select timer by using kernel parameter?

Thanks!
_________________
Hi, Gentoo men!!
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Wed Mar 22, 2006 3:35 am    Post subject: Re: How to select timer by using kernel parameter? Reply with quote

MACHINE wrote:
My system (Acer TravelMate 3001) always hangs up by using PM_TIMER no idea why.

That also happens with some Dell servers, caused by the BIOS hardware clock supposedly being "better".

You can run grep TIMER /usr/src/linux/.config, or in the kernel's "make menuconfig" press "/" and just search for "timer".
Back to top
View user's profile Send private message
MACHINE
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2004
Posts: 141
Location: Earth

PostPosted: Wed Mar 22, 2006 5:21 am    Post subject: Re: How to select timer by using kernel parameter? Reply with quote

PaulBredbury wrote:
MACHINE wrote:
My system (Acer TravelMate 3001) always hangs up by using PM_TIMER no idea why.

That also happens with some Dell servers, caused by the BIOS hardware clock supposedly being "better".

You can run grep TIMER /usr/src/linux/.config, or in the kernel's "make menuconfig" press "/" and just search for "timer".


it does not work, it will be overwritten everytime i "make".
_________________
Hi, Gentoo men!!
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Wed Mar 22, 2006 5:40 am    Post subject: Reply with quote

Try it, and I think you'll find it does work. Otherwise, people would have a most annoying time of trying to configure their kernels :wink:

grep does not change anything, it just shows matches. You make the change within make menuconfig.
Back to top
View user's profile Send private message
MACHINE
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2004
Posts: 141
Location: Earth

PostPosted: Wed Mar 22, 2006 7:36 am    Post subject: Reply with quote

PaulBredbury wrote:
Try it, and I think you'll find it does work. Otherwise, people would have a most annoying time of trying to configure their kernels :wink:

grep does not change anything, it just shows matches. You make the change within make menuconfig.



1. make menuconfig
2. vi .config (to comment out CONFIG_X86_PM_TIMER)
3. make
4. cat .config | grep PM_TIMER (and you will see CONFIG_X86_PM_TIMER is set to yes again)
5. make modules_install
6. make install
7. reboot
8. (hang up)
_________________
Hi, Gentoo men!!
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Wed Mar 22, 2006 7:40 am    Post subject: Reply with quote

MACHINE wrote:
2. vi .config (to comment out CONFIG_X86_PM_TIMER)

Don't do that - heed the warning at the stop of the file:
Quote:
# Automatically generated make config: don't edit

Edit the file via the user interface from make menuconfig
Back to top
View user's profile Send private message
MACHINE
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2004
Posts: 141
Location: Earth

PostPosted: Wed Mar 22, 2006 9:21 am    Post subject: Reply with quote

PaulBredbury wrote:
MACHINE wrote:
2. vi .config (to comment out CONFIG_X86_PM_TIMER)

Don't do that - heed the warning at the stop of the file:
Quote:
# Automatically generated make config: don't edit

Edit the file via the user interface from make menuconfig


as I said, there is no such option in menuconfig in 2.6.16.
_________________
Hi, Gentoo men!!
Back to top
View user's profile Send private message
Primozic
Apprentice
Apprentice


Joined: 11 Jun 2004
Posts: 186
Location: Dover, NH, USA

PostPosted: Wed Mar 22, 2006 4:44 pm    Post subject: Reply with quote

I'm using 2.6.16, and it's there. You have to have ACPI enabled to see it, and I'm assuming you do since you're using a laptop.

Power management options (ACPI, APM) --> ACPI (Advanced Configuration and Power Interface) Support
[ ] Power Management Timer Support
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Wed Mar 22, 2006 5:53 pm    Post subject: Reply with quote

make menuconfig's search on pm_timer explains everything:
Code:
Symbol: X86_PM_TIMER [=y]
  │ Prompt: Power Management Timer Support                                  │
  │   Defined at drivers/acpi/Kconfig:287                                   │
  │   Depends on: !X86_VOYAGER && !X86_VISWS && !IA64_HP_SIM && (IA64 || X8 │
  │   Location:                                                             │
  │     -> Power management options (ACPI, APM)                             │
  │       -> ACPI (Advanced Configuration and Power Interface) Support      │
  │         -> ACPI Support (ACPI [=y]) 
Back to top
View user's profile Send private message
MACHINE
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2004
Posts: 141
Location: Earth

PostPosted: Wed Mar 22, 2006 7:45 pm    Post subject: Reply with quote

PaulBredbury wrote:
make menuconfig's search on pm_timer explains everything:
Code:
Symbol: X86_PM_TIMER [=y]
  ©¦ Prompt: Power Management Timer Support                                  ©¦
  ©¦   Defined at drivers/acpi/Kconfig:287                                   ©¦
  ©¦   Depends on: !X86_VOYAGER && !X86_VISWS && !IA64_HP_SIM && (IA64 || X8 ©¦
  ©¦   Location:                                                             ©¦
  ©¦     -> Power management options (ACPI, APM)                             ©¦
  ©¦       -> ACPI (Advanced Configuration and Power Interface) Support      ©¦
  ©¦         -> ACPI Support (ACPI [=y]) 


What!!!!!! Unbelievable........It does not exist in my kernel config.......
By the way, I'm using CK's kernel.
_________________
Hi, Gentoo men!!
Back to top
View user's profile Send private message
MACHINE
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2004
Posts: 141
Location: Earth

PostPosted: Wed Mar 22, 2006 8:36 pm    Post subject: Reply with quote

oh no........even gentoo-sources does not have that option.
i'm gonna try vanilla-sources tonight...

thank everybody!
_________________
Hi, Gentoo men!!
Back to top
View user's profile Send private message
dundas
Guru
Guru


Joined: 16 Dec 2004
Posts: 317
Location: China, Earth

PostPosted: Sun Jun 18, 2006 10:37 am    Post subject: Reply with quote

u should have it now wiz current stable gentoo-sources r9
_________________
Appreciate Gentoo: Best Devs, Best Forums. YOU could help too: Help Answer
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
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