Good experiences with X.Org autoconfiguration[转]

Good experiences with X.Org autoconfiguration

There has been some grumbling about the new X.Org autoconfiguration and its dependancy on hald, but I've actually had decent experience with it. In short - it's so automated it's boring.

Keywords: FreeBSD, X.Org, X11, configuration

I have no xorg.conf on the AMD64 system I'm typing this post from. Simply none at all. X.Org and Xfce 4.6 were installed from port, startx started and I have a nice desktop. My video card is powered by the radeonhd driver, my mouse is USB, my keyboard is PS/s. The only puzzling thing was how to get the keyboard layout correct - Xfce doesn't have a keyboard layout applet so X.Org needs to take care of it. I really didn't want to create a new xorg.conf file so I sought other solutions.

Adding "setxkbmap hr" to xinitrc will set the keyboard layout to "HR" (replace with other layouts as needed). Of course, X.Org cannot detect the keyboard layout (though maybe it's time to embed these two bytes in the keyboard hardwere somewhere... or switch to English globally).

My rc.conf contains these lines:

hald_enable="YES"
dbus_enable="YES"
polkitd_enable="YES"

I should also add Avahi there - I'll see if I need it.

Polkitd needs these lines in /usr/local/etc/PolicyKit/PolicyKit.conf for the users to be able to shutdown/restart the system:

<match action="org.freedesktop.hal.power-management.shutdown">
<return result="yes"/>
</match>

<match action="org.freedesktop.hal.power-management.reboot">
<return result="yes"/>
</match>

http://ivoras.sharanet.org/blog/tree/2009-04-18.good-experiences-with-x.org-autoconfiguration.html

你可能感兴趣的:(#Freebsd)