You are not logged in.

#1 2012-01-16 11:21:36

Jankosevic
Member
Registered: 2008-07-06
Posts: 82

[SOLVED] Load module alternative

Hello,

I have small problems with one kernel module.

What I want: load the nvidia_acpi_call module to deactivate my discrete graphics card
from https://aur.archlinux.org/packages.php?ID=34499

1st alternative: load the module in rc.conf
Works, but I get dozens of error messages and long delays during boot
see: https://bbs.archlinux.org/viewtopic.php … 66#p787566

2nd alternative: modprobe it in rc.local
Works, but upowerd goes up to 100% cpu usage afterwards.
see: https://bbs.archlinux.org/viewtopic.php … 33#p994833
They say that the module should be loaded after xorg to avoid this.

3rd alternative: Load the module manually after system start
I am doing that at the moment, but it is quite annoying.

So do you have any other ideas?
Thx!

Last edited by Jankosevic (2012-01-21 13:59:36)

Offline

#2 2012-01-17 10:40:50

Jankosevic
Member
Registered: 2008-07-06
Posts: 82

Re: [SOLVED] Load module alternative

I'd be glad about any idea wink

Offline

#3 2012-01-17 17:25:56

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Load module alternative

Jankosevic wrote:

module should be loaded after xorg

In e.g. rc.local, start a process that waits, e.g.: (untried crappy bash code ahead)

(while [[ -z $(pidof -s /usr/bin/X) ]] ; do sleep 1 ; done && sleep 10 && modprobe whatever) &

I added a "sleep 10" to give it time to settle - maybe needed, maybe not, but in case of doubt, I'd do it.

Last edited by brebs (2012-01-17 17:26:46)

Offline

#4 2012-01-21 10:44:03

Jankosevic
Member
Registered: 2008-07-06
Posts: 82

Re: [SOLVED] Load module alternative

Thx that worked!

Offline

Board footer

Powered by FluxBB