Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How does Fedora do it?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
Rhakios
Moderator


Joined: Thu Apr 07, 2005 12:18 am
Posts: 7627
Location: Midlands, UK

PostPosted: Wed Nov 15, 2006 9:40 pm    Post subject: How does Fedora do it? Reply with quote

Well, it isn't a problem, so it's not going in Help, but I don't understand how FC6 gets away with such a sparse xorg.conf file. Here it is full:

Code:

# Xorg configuration created by pyxf86config

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "cymotionlinux"
        Option      "XkbLayout" "gb"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "nvidia"
        Option      "TwinView"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection


No mouse defined, you'll notice, but it works just fine as a three button device. I have modified a couple of entries, for my keyboard and the nvidia driver and added the TwinView line, but the rest is as it was.
Bearing in mind the massive xorg.conf files I am accustomed to from SUSE, Mandriva and the various *buntus I've tried, I don't understand how FC6 can get away with so little.
Confused
_________________
Bye, Rhakios
Back to top
View user's profile Send private message
spottedcat
LXF regular


Joined: Mon Oct 31, 2005 3:14 pm
Posts: 971
Location: UK

PostPosted: Wed Nov 15, 2006 10:48 pm    Post subject: RE: How does Fedora do it? Reply with quote

Interesting. My FC6 xorg.conf is longer only because it's on a laptop and has this section:

Code:
Section "InputDevice"
   Identifier  "Synaptics"
   Driver      "synaptics"
   Option       "Device" "/dev/input/mice"
   Option       "Protocol" "auto-dev"
   Option       "Emulate3Buttons" "yes"
   Option       "LeftEdge" "120"
   Option       "RightEdge" "830"
   Option       "TopEdge" "120"
   Option       "BottomEdge" "650"
   Option       "FingerLow" "14"
   Option       "FingerHigh" "15"
   Option       "MaxTapMove" "110"
   Option       "VertScrollDelta" "20"
   Option       "HorizScrollDelta" "20"
   Option       "MinSpeed" "0.3"
   Option       "MaxSpeed" "0.75"
EndSection


Which is somewhat more verbose than in Ubuntu Dapper on another partition, with:

Code:
Section "InputDevice"
   Identifier   "Synaptics Touchpad"
   Driver      "synaptics"
   Option      "SendCoreEvents"   "true"
   Option      "Device"      "/dev/psaux"
   Option      "Protocol"      "auto-dev"
   Option      "HorizScrollDelta"   "0"
EndSection


But despite this, the touchpad seems to work just as well - even vertical and horizontal scrolling. Confused But in Ubuntu Edgy (on yet another partition) the Synaptics section is identical to the Dapper one, but scrolling won't work unless I log out and log in again - and then the logout button moves to the left of the clock and won't move back again.

But if you really want a shock, have a look at an Ubuntu Edgy fstab. Sad
Back to top
View user's profile Send private message
towy71
Moderator


Joined: Wed Apr 06, 2005 3:11 pm
Posts: 4257
Location: wild West Wales

PostPosted: Wed Nov 15, 2006 11:17 pm    Post subject: RE: How does Fedora do it? Reply with quote

eeek wtf is that? why is it like that Confused
_________________
still looking for that door into summer
Back to top
View user's profile Send private message
Rhakios
Moderator


Joined: Thu Apr 07, 2005 12:18 am
Posts: 7627
Location: Midlands, UK

PostPosted: Wed Nov 15, 2006 11:17 pm    Post subject: Re: RE: How does Fedora do it? Reply with quote

spottedcat wrote:

But if you really want a shock, have a look at an Ubuntu Edgy fstab. Sad


If I'd got VMWare running yet, then I might. Not that it's a problem (I hope), I just need the time.
_________________
Bye, Rhakios
Back to top
View user's profile Send private message
spottedcat
LXF regular


Joined: Mon Oct 31, 2005 3:14 pm
Posts: 971
Location: UK

PostPosted: Wed Nov 15, 2006 11:22 pm    Post subject: Re: RE: How does Fedora do it? Reply with quote

towy71 wrote:
eeek wtf is that? why is it like that Confused


Are you referring to the Edgy fstab? Just change the impenetrable garbage to /dev/hda1 (or whatever) and it works just as well.
Back to top
View user's profile Send private message
towy71
Moderator


Joined: Wed Apr 06, 2005 3:11 pm
Posts: 4257
Location: wild West Wales

PostPosted: Wed Nov 15, 2006 11:28 pm    Post subject: RE: Re: RE: How does Fedora do it? Reply with quote

that really is obfuscation of the highest order
_________________
still looking for that door into summer
Back to top
View user's profile Send private message
spottedcat
LXF regular


Joined: Mon Oct 31, 2005 3:14 pm
Posts: 971
Location: UK

PostPosted: Wed Nov 15, 2006 11:43 pm    Post subject: Re: RE: Re: RE: How does Fedora do it? Reply with quote

towy71 wrote:
that really is obfuscation of the highest order


Which? The Edgy fstab or my reply? Laughing

I did see an explanation for it on Ubuntuforums but I didn't keep the link so I can't point you to it. There was some advantage but for the life of me I can't remember what that was. The downside is that if you move the physical location of the partitions on the drive, Edgy throws a major wobbly. And if you detect the voice of bitter experience in that you'd be quite right, Sad
Back to top
View user's profile Send private message
towy71
Moderator


Joined: Wed Apr 06, 2005 3:11 pm
Posts: 4257
Location: wild West Wales

PostPosted: Wed Nov 15, 2006 11:47 pm    Post subject: RE: Re: RE: Re: RE: How does Fedora do it? Reply with quote

course it wasn't your reply SC, you are a beacon of sanity in this crazy world Wink
_________________
still looking for that door into summer
Back to top
View user's profile Send private message
spottedcat
LXF regular


Joined: Mon Oct 31, 2005 3:14 pm
Posts: 971
Location: UK

PostPosted: Wed Nov 15, 2006 11:57 pm    Post subject: RE: Re: RE: Re: RE: How does Fedora do it? Reply with quote

Kind words, Towy, but I sometimes wonder if I wouldn't rather be a beacon of craziness. Twisted Evil

(Bugger it - every time I try to submit a post, the forum server has gone off for a coffee break. Is that happening to you?)
Back to top
View user's profile Send private message
ryptyde



Joined: Wed Apr 06, 2005 5:24 pm
Posts: 95
Location: Tragic City,Michigan,USA

PostPosted: Sun Nov 19, 2006 12:31 am    Post subject: Reply with quote

Here's my xorg.conf after a fresh install of FC6 and the Compiz and Beryl window managers are fully functional. No manual alterations or fighting to install Nvidia drivers as with FC5.
Code:
# Xorg configuration created by pyxf86config

Section "ServerLayout"
   Identifier     "Default Layout"
   Screen      0  "Screen0" 0 0
   InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
   ModulePath   "/usr/lib/xorg/modules/extensions/nvidia"
   ModulePath   "/usr/lib/xorg/modules"
EndSection

Section "InputDevice"
   Identifier  "Keyboard0"
   Driver      "kbd"
   Option       "XkbModel" "pc105"
   Option       "XkbLayout" "us"
EndSection

Section "Device"
   Identifier  "Videocard0"
   Driver      "nvidia"
   Option       "AddARGBGLXVisuals" "True"
EndSection

Section "Screen"
   Identifier "Screen0"
   Device     "Videocard0"
   DefaultDepth     24
   SubSection "Display"
      Viewport   0 0
      Depth     24
   EndSubSection
EndSection


I should add that the Nvidia kernel drv and mods were added just after a complete update after the install.Added and drew from the Livna repo.
Back to top
View user's profile Send private message
Rhakios
Moderator


Joined: Thu Apr 07, 2005 12:18 am
Posts: 7627
Location: Midlands, UK

PostPosted: Sun Nov 19, 2006 2:30 am    Post subject: Reply with quote

Reading the latest edition of the magazine, there is a small section in the Fedora article that suggests that they manage to do so much with so little by letting the X server do the work. Mind you, you can see it doing much of this in the Xorg.log, it's just that it isn't always totally correct.
Mandriva does something odd to get the extra buttons on my mouse to work (which Fedora ignores).

Code:

Section "InputDevice"
    Identifier "Mouse1"
    Driver "mouse"
    Option "Protocol" "ExplorerPS/2"
    Option "Device" "/dev/mouse"
EndSection

Section "InputDevice"
    Identifier "Mouse2"
    Driver "evdev"
    Option "product" "0xc50e"
    Option "HWheelRelativeAxisButtons" "7 6"
    Option "vendor" "0x046d"
EndSection


Treats it as two separate mice? Shocked
_________________
Bye, Rhakios
Back to top
View user's profile Send private message
spottedcat
LXF regular


Joined: Mon Oct 31, 2005 3:14 pm
Posts: 971
Location: UK

PostPosted: Sun Nov 19, 2006 4:33 pm    Post subject: Reply with quote

Yes, when I read that article in the latest LXF I thought of this thread. I've noticed that some distros leave out the HorizSync and VertRefresh values and I'd wondered how it all still worked. Is it that each newer version of the xserver is able to auto-configure better than the last or is it that the Fedora team have done something special? I don't know whether Ubuntu Edgy uses the same version of X as FC6, but Edgy's xorg.conf is unremarkably long-winded - not as frightening as Edgy's fstab though. Smile
Back to top
View user's profile Send private message
Rhakios
Moderator


Joined: Thu Apr 07, 2005 12:18 am
Posts: 7627
Location: Midlands, UK

PostPosted: Sun Nov 19, 2006 5:11 pm    Post subject: Reply with quote

Well now, having got VMWare up an running again, I've had a look in Kubuntu. Yes, very odd looking compared to your standard fstab, though I'm sure I've seen something like it before. Do UUIDs have something to do with devfs?

Edit: perhaps I mean udev.
_________________
Bye, Rhakios
Back to top
View user's profile Send private message
spottedcat
LXF regular


Joined: Mon Oct 31, 2005 3:14 pm
Posts: 971
Location: UK

PostPosted: Sun Nov 19, 2006 5:24 pm    Post subject: Reply with quote

I think this Ubuntuforums thread has a credible explanation.

But to get back to xorg.conf files:

I installed Gentoo 2006.1 this morning from the LXF86 DVD - as one does. Both the live version and the installed version mis-configured my 1280x1024 monitor to 1024x768. Easily rectified, of course, by editing xorg.conf, but I couldn't help thinking of Fedora's automagic. But, of course, that wouldn't be the Gentoo way, would it? Smile
Back to top
View user's profile Send private message
Rhakios
Moderator


Joined: Thu Apr 07, 2005 12:18 am
Posts: 7627
Location: Midlands, UK

PostPosted: Sun Nov 19, 2006 6:04 pm    Post subject: Reply with quote

Mind you, probing monitor settings isn't always a good idea anyway, I have to use the IgnoreEDID option with the nvidia driver for my monitor if I want a readable display.

As for the UUID bit, I'm not in the habit of moving discs around in my machine either. Makes you wonder if it might be a disadvantage for RAID systems, if a dud disk has to be replaced. Although, I suppose the UUID would be specific to the RAID partition, not the hardware... er dunno.
_________________
Bye, Rhakios
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Discussion All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast