Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hdparm, runlevel, startx (etc)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
G00fy
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2003
Posts: 93
Location: Mechelen, Belgium, Europe, Earth

PostPosted: Tue Aug 26, 2003 3:51 am    Post subject: hdparm, runlevel, startx (etc) Reply with quote

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
View user's profile Send private message
G00fy
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2003
Posts: 93
Location: Mechelen, Belgium, Europe, Earth

PostPosted: Tue Aug 26, 2003 3:59 am    Post subject: Re: hdparm, runlevel, startx (etc) Reply with quote

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
View user's profile Send private message
G00fy
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2003
Posts: 93
Location: Mechelen, Belgium, Europe, Earth

PostPosted: Tue Aug 26, 2003 9:21 am    Post subject: Re: hdparm, runlevel, startx (etc) Reply with quote

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
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Tue Aug 26, 2003 9:36 am    Post subject: Re: hdparm, runlevel, startx (etc) Reply with quote

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
View user's profile Send private message
Celtis
l33t
l33t


Joined: 05 Jul 2003
Posts: 737

PostPosted: Tue Aug 26, 2003 9:44 am    Post subject: Re: hdparm, runlevel, startx (etc) Reply with quote

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
View user's profile Send private message
G00fy
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2003
Posts: 93
Location: Mechelen, Belgium, Europe, Earth

PostPosted: Tue Aug 26, 2003 5:26 pm    Post subject: Re: hdparm, runlevel, startx (etc) Reply with quote

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
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Wed Aug 27, 2003 12:43 am    Post subject: Reply with quote

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
View user's profile Send private message
Ben2040
Guru
Guru


Joined: 07 May 2003
Posts: 445
Location: UK

PostPosted: Wed Aug 27, 2003 6:47 am    Post subject: Reply with quote

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:

Code:
# xf86cfg


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
View user's profile Send private message
G00fy
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2003
Posts: 93
Location: Mechelen, Belgium, Europe, Earth

PostPosted: Wed Aug 27, 2003 7:17 am    Post subject: Reply with quote

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
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Wed Aug 27, 2003 8:31 am    Post subject: Reply with quote

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
View user's profile Send private message
G00fy
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2003
Posts: 93
Location: Mechelen, Belgium, Europe, Earth

PostPosted: Wed Aug 27, 2003 10:34 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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