View previous topic :: View next topic |
Author |
Message |
G00fy Tux's lil' helper
Joined: 11 Jun 2003 Posts: 93 Location: Mechelen, Belgium, Europe, Earth
|
Posted: Tue Aug 26, 2003 3:51 am Post subject: hdparm, runlevel, startx (etc) |
|
|
Few questions:
1/ I want hdparm to set my dma upon booting... Now it sets it AFTER all those fsck-checks... I want it to set before 'checkroot'. But how?
2/ I want my numlock to be turned on immediatly, anyone knows?
3/ The most difficult thing of all ( I guess ). I did 'emerge xfree'. Then i ran the xf86config... After that I did 'startx', and it just freezes. I can't do no shit anymore. Even not turning numlock on/off! So what could that be?
My system:
- Athlon XP
- Nforce 2 mobo
- Geforce 4 Ti4200
XFconfig:
@ Module: glx enabled
@ Device: driver "nvidia" (I emerged nvidia-glx & nvidia-kernel)
4/ Upon booting it says something about setting the /dev/rtc (setting Real Time Clock to...) ... And then it gives 3 or 4 errors about not knowing /etc/rtc and 1 other device, also ending in rtc. Any solutions?
5/ Maybe a dumb question, but I have a belgian azerty keyboard. How do I get the &é"'( etc to work (symbols under 12345).
Thanks in advance _________________ Drakenberg's Discovery:
If you can't seem to find your glasses,
it's probably because you don't have them on. |
|
Back to top |
|
|
G00fy Tux's lil' helper
Joined: 11 Jun 2003 Posts: 93 Location: Mechelen, Belgium, Europe, Earth
|
Posted: Tue Aug 26, 2003 3:59 am Post subject: Re: hdparm, runlevel, startx (etc) |
|
|
Found this one
Quote: | 2/ I want my numlock to be turned on immediatly, anyone knows? |
For your reference (add to local.start):
Code: | for tty in /dev/tty*
do
setleds -D +num < $tty > /dev/null
done
|
_________________ Drakenberg's Discovery:
If you can't seem to find your glasses,
it's probably because you don't have them on. |
|
Back to top |
|
|
G00fy Tux's lil' helper
Joined: 11 Jun 2003 Posts: 93 Location: Mechelen, Belgium, Europe, Earth
|
Posted: Tue Aug 26, 2003 9:21 am Post subject: Re: hdparm, runlevel, startx (etc) |
|
|
Quote: | 1/ I want hdparm to set my dma upon booting... Now it sets it AFTER all those fsck-checks... I want it to set before 'checkroot'. But how? |
ok, fixed this (ugly way)...
I just put the following code after "start() {" in the checkroot-file
Code: | /sbin/hdparm -d1 -A1 -m16 -u1 /dev/hda |
_________________ Drakenberg's Discovery:
If you can't seem to find your glasses,
it's probably because you don't have them on. |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Tue Aug 26, 2003 9:36 am Post subject: Re: hdparm, runlevel, startx (etc) |
|
|
G00fy wrote: |
1/ I want hdparm to set my dma upon booting... Now it sets it AFTER all those fsck-checks... I want it to set before 'checkroot'. But how?
|
did you put hdparm in boot or in default runlevel? you can also edit /etc/init.d/hdparm and add a "before xyz" line to make it start before file system checking (if there a no side-effects).
Quote: |
3/ The most difficult thing of all ( I guess ). I did 'emerge xfree'. Then i ran the xf86config... After that I did 'startx', and it just freezes. I can't do no shit anymore. Even not turning numlock on/off! So what could that be?
|
try Ctrl+Alt+Backspace to shut down X in that case.
what do the last lines of /var/log/XFree.log (or similar) look like?
Quote: |
4/ Upon booting it says something about setting the /dev/rtc (setting Real Time Clock to...) ... And then it gives 3 or 4 errors about not knowing /etc/rtc and 1 other device, also ending in rtc. Any solutions?
|
did you add real time clock support to your kernel?
Quote: |
5/ Maybe a dumb question, but I have a belgian azerty keyboard. How do I get the &é"'( etc to work (symbols under 12345).
|
did you have a look at the gentoo localisation guide in the docs section? I believe it's covered there. |
|
Back to top |
|
|
Celtis l33t
Joined: 05 Jul 2003 Posts: 737
|
Posted: Tue Aug 26, 2003 9:44 am Post subject: Re: hdparm, runlevel, startx (etc) |
|
|
G00fy wrote: |
4/ Upon booting it says something about setting the /dev/rtc (setting Real Time Clock to...) ... And then it gives 3 or 4 errors about not knowing /etc/rtc and 1 other device, also ending in rtc. Any solutions?
|
In kernel config enable "Enhanced Real Time Clock Support" under "Character devices".
Sorry I can't help with the others |
|
Back to top |
|
|
G00fy Tux's lil' helper
Joined: 11 Jun 2003 Posts: 93 Location: Mechelen, Belgium, Europe, Earth
|
Posted: Tue Aug 26, 2003 5:26 pm Post subject: Re: hdparm, runlevel, startx (etc) |
|
|
Earthwings wrote: | did you put hdparm in boot or in default runlevel? you can also edit /etc/init.d/hdparm and add a "before xyz" line to make it start before file system checking (if there a no side-effects). |
In "checkroot" you have a "before *" ... in hdparm you got "need localmount", so I dont think this will help...
Quote: | try Ctrl+Alt+Backspace to shut down X in that case.
what do the last lines of /var/log/XFree.log (or similar) look like? |
Nope, won't work... My system totally freezes on me :'(... I will show the log when I get back to linux (now @ winblows :s)
Quote: | did you add real time clock support to your kernel? |
I will check this one... I think I did, but I might have overlooked it.
Quote: | did you have a look at the gentoo localisation guide in the docs section? I believe it's covered there. |
Ow, I'm heading over there now _________________ Drakenberg's Discovery:
If you can't seem to find your glasses,
it's probably because you don't have them on. |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Wed Aug 27, 2003 12:43 am Post subject: |
|
|
G00fy wrote: | 1/ I want hdparm to set my dma upon booting... Now it sets it AFTER all those fsck-checks... I want it to set before 'checkroot'. But how? |
If you only have generic IDE support compiled in your kernel, it will boot with DMA turned off.
If you compile-in the proper chipset support for your IDE controller, DMA will be enabled by default.
I think setting DMA with hdparm is just a workaround for an incorrectly configured kernel. |
|
Back to top |
|
|
Ben2040 Guru
Joined: 07 May 2003 Posts: 445 Location: UK
|
Posted: Wed Aug 27, 2003 6:47 am Post subject: |
|
|
Hi
Can't help with the others but...
Quote: | 3/ The most difficult thing of all ( I guess ). I did 'emerge xfree'. Then i ran the xf86config... After that I did 'startx', and it just freezes. I can't do no shit anymore. Even not turning numlock on/off! So what could that be? |
Have you tried auto-generating a config file with:
This auto detected all of my hardware and then brings up a GUI for manually adding resolutions and changing any hardware, refresh rates etc.
Ben |
|
Back to top |
|
|
G00fy Tux's lil' helper
Joined: 11 Jun 2003 Posts: 93 Location: Mechelen, Belgium, Europe, Earth
|
Posted: Wed Aug 27, 2003 7:17 am Post subject: |
|
|
Hmmm no... But I will try.
- As for the DMA question (for other people who're searching those boards).
[keywords]Epox 8RDA+ Nforce2 DMA HDD Harddrive[/keywords]
In kernel config, enable nothing but 'generic IDE', 'auto use DMA' and 'AMD chipset'. This may be called 'Viper' too (AMD76xx setting).
Then recompile the kernel & DMA will be enabled upon boottime.
- As for the RTC clock. Just enabled it 'enhanced real time clock' in the kernel. Works like a charm _________________ Drakenberg's Discovery:
If you can't seem to find your glasses,
it's probably because you don't have them on. |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Wed Aug 27, 2003 8:31 am Post subject: |
|
|
btw: a good and lazy way to get a working XFree configfile is to boot knoppix and copy the generated config file |
|
Back to top |
|
|
G00fy Tux's lil' helper
Joined: 11 Jun 2003 Posts: 93 Location: Mechelen, Belgium, Europe, Earth
|
Posted: Wed Aug 27, 2003 10:34 am Post subject: |
|
|
Earthwings wrote: | btw: a good and lazy way to get a working XFree configfile is to boot knoppix and copy the generated config file |
awl raajt
going to try that ^_^
And if that works, I'm going to f**k around until I get the hang of it .
*edit*
used xf86cfg... God that was easy!
Now I need to get my mouse working :'(
neither /dev/ttyS0 nor /dev/ttyS1 will work :S _________________ Drakenberg's Discovery:
If you can't seem to find your glasses,
it's probably because you don't have them on. |
|
Back to top |
|
|
|