On Sun, 2009-02-01 at 17:19 +0000, Daniel Bye wrote:> On Sun, Feb 01, 2009 at 05:42:39PM +0100, Sebastien Chassot wrote: > > > > Hi, > > > > I've upgrade to xorg7.4 and apparently keyboard and mouse are now > > working with hald. > > > > In xorg.conf changing "old" keybord config as no effect and I can't find > > how change it with hal. I've got /usr/local/etc/hal/fdi/* but no > > *keymap* and I don't know how build such a file. > > This should get you started: > > <?xml version="1.0" encoding="ISO-8859-1"?> > <deviceinfo version="0.2"> > <device> > <match key="info.capabilities" contains="input.keyboard"> > <merge key="input.xkb.layout" type="string">gb</merge> > </match> > </device> > </deviceinfo> > > Change the `gb' in the example to your local keymap name, save the file > as /usr/local/etc/hal/fdi/policy/x11-input.fdi and restart hald.I'll start with that Thank you Sebastien
Sebastien Chassot wrote:> On Sun, 2009-02-01 at 17:19 +0000, Daniel Bye wrote: > >> On Sun, Feb 01, 2009 at 05:42:39PM +0100, Sebastien Chassot wrote: >> >>> Hi, >>> >>> I've upgrade to xorg7.4 and apparently keyboard and mouse are now >>> working with hald. >>> >>> In xorg.conf changing "old" keybord config as no effect and I can't find >>> how change it with hal. I've got /usr/local/etc/hal/fdi/* but no >>> *keymap* and I don't know how build such a file. >>> >> This should get you started: >> >> <?xml version="1.0" encoding="ISO-8859-1"?> >> <deviceinfo version="0.2"> >> <device> >> <match key="info.capabilities" contains="input.keyboard"> >> <merge key="input.xkb.layout" type="string">gb</merge> >> </match> >> </device> >> </deviceinfo> >> >> Change the `gb' in the example to your local keymap name, save the file >> as /usr/local/etc/hal/fdi/policy/x11-input.fdi and restart hald. >>This seems to have a way to enable HAL to detect a keyboard and export it to X, but what about mice? My Xorg log tells me that it is ignoring my USB mouse in addition to ignoring my keyboard, so what sort of HAL file do I add to enable it to find my mouse? Where in HAL documentation is this information found? R. Noland seemed to think it was a trivial process to make HAL do keyboards and mice? In fact it is not trivial but a pain in the ass! If you intend to inflict broken software on unsuspecting users you had better think through all of the problems and come up with explicit solutions to all of those problems so that everyone has a chance to make their systems work. There had better not be any more surprises waiting in the X 1.6 wings to surprise and confound everyone again!> > I'll start with that > > Thank you > > > Sebastien > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > > >
On Mon, 2009-02-02 at 12:43 -0800, Joe Kelsey wrote:> Robert Noland wrote: > > > > man xorg.conf search for Input... > > > > > This provides absolutely no help. > > I look at my /var/log/Xorg.0.log and it tells me nothing. If I remove > the keyboard and mouse input devices from xorg.conf, the log tells me > that it is disabling all input devices and never says anything else. > There is no evidence that hal does anything that X want to know about. > How would I detect that my configuration file needs changing? Is there > a message in Xorg.0.log to look for? Is there a help file somehwere > which explains how to change your configuration file to allow hal to work? > > I cannot find any information anywhere in the system to allow me to > debug my problems in any way. I want to have fully automatic > configuration using whatever means will allow it. You explanations > about the mysterious behavior of hal and xorg do not give me any > information I can use in any way to solve my problems. > > > > > Set Options "AutoAddDevices" "off" and you have to configure everything > > like you used to. > > > I WANT to use the new facilities. Is it possible to debug my > configuration problems? Where do I start? How do I enable this magical > new world of letting hal do things for me? What changes do I make to > xorg.conf to allow this?Ok, are you using gdm, xdm, or startx? You need to ensure that dbus and hald are running first. Set dbus_enable="YES" and hald_enable="YES" in your rc.conf. If you are using xdm or startx, there is a potential race on startup, where hal/dbus are not yet ready when Xorg starts up. This is an issue with linux as well and at least partial solutions have been proposed. I may try and finish it up if no-one beats me to it... But my preference is to work on FreeBSD specific issues, given that there is well, one of me compared to lots of linux folks. if you are using startx, give dbus/hald a little time to startup before you startx. If you are using xdm, some various solutions have been proposed on the mailing list. None of them are really pretty, but seem to be working for folks for the time being. Failing that, send me your xorg.conf and xorg.log, but it is working for most people. robert.> /Joe >-- Robert Noland <rnoland@FreeBSD.org> FreeBSD -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: This is a digitally signed message part Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20090202/f9175209/attachment.pgp
On Mon, 2009-02-02 at 16:05 -0500, Robert Noland wrote:> On Mon, 2009-02-02 at 12:43 -0800, Joe Kelsey wrote: > > Robert Noland wrote: > > > > > > man xorg.conf search for Input... > > > > > > > > This provides absolutely no help. > > > > I look at my /var/log/Xorg.0.log and it tells me nothing. If I remove > > the keyboard and mouse input devices from xorg.conf, the log tells me > > that it is disabling all input devices and never says anything else. > > There is no evidence that hal does anything that X want to know about. > > How would I detect that my configuration file needs changing? Is there > > a message in Xorg.0.log to look for? Is there a help file somehwere > > which explains how to change your configuration file to allow hal to work? > > > > I cannot find any information anywhere in the system to allow me to > > debug my problems in any way. I want to have fully automatic > > configuration using whatever means will allow it. You explanations > > about the mysterious behavior of hal and xorg do not give me any > > information I can use in any way to solve my problems. > > > > > > > > Set Options "AutoAddDevices" "off" and you have to configure everything > > > like you used to. > > > > > I WANT to use the new facilities. Is it possible to debug my > > configuration problems? Where do I start? How do I enable this magical > > new world of letting hal do things for me? What changes do I make to > > xorg.conf to allow this? > > Ok, are you using gdm, xdm, or startx? > > You need to ensure that dbus and hald are running first. Set > dbus_enable="YES" and hald_enable="YES" in your rc.conf.This FAQ says to remplace dbus/hal by gnome_enable="YES" http://www.freebsd.org/gnome/docs/faq2.html#full-gnome
On Tue, 2009-02-03 at 15:07 +0100, Sebastien Chassot wrote:> On Mon, 2009-02-02 at 16:05 -0500, Robert Noland wrote: > > On Mon, 2009-02-02 at 12:43 -0800, Joe Kelsey wrote: > > > Robert Noland wrote: > > > > > > > > man xorg.conf search for Input... > > > > > > > > > > > This provides absolutely no help. > > > > > > I look at my /var/log/Xorg.0.log and it tells me nothing. If I remove > > > the keyboard and mouse input devices from xorg.conf, the log tells me > > > that it is disabling all input devices and never says anything else. > > > There is no evidence that hal does anything that X want to know about. > > > How would I detect that my configuration file needs changing? Is there > > > a message in Xorg.0.log to look for? Is there a help file somehwere > > > which explains how to change your configuration file to allow hal to work? > > > > > > I cannot find any information anywhere in the system to allow me to > > > debug my problems in any way. I want to have fully automatic > > > configuration using whatever means will allow it. You explanations > > > about the mysterious behavior of hal and xorg do not give me any > > > information I can use in any way to solve my problems. > > > > > > > > > > > Set Options "AutoAddDevices" "off" and you have to configure everything > > > > like you used to. > > > > > > > I WANT to use the new facilities. Is it possible to debug my > > > configuration problems? Where do I start? How do I enable this magical > > > new world of letting hal do things for me? What changes do I make to > > > xorg.conf to allow this? > > > > Ok, are you using gdm, xdm, or startx? > > > > You need to ensure that dbus and hald are running first. Set > > dbus_enable="YES" and hald_enable="YES" in your rc.conf. > > This FAQ says to remplace dbus/hal by gnome_enable="YES"Correct, if you using gnome, that will enable hal and dbus. robert.> http://www.freebsd.org/gnome/docs/faq2.html#full-gnome >-- Robert Noland <rnoland@FreeBSD.org> FreeBSD -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: This is a digitally signed message part Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20090203/eddf04b3/attachment.pgp
Robert Noland wrote:> On Tue, 2009-02-03 at 15:07 +0100, Sebastien Chassot wrote: > >> On Mon, 2009-02-02 at 16:05 -0500, Robert Noland wrote: >> >>> On Mon, 2009-02-02 at 12:43 -0800, Joe Kelsey wrote: >>> >>>> Robert Noland wrote: >>>> >>>>> man xorg.conf search for Input... >>>>> >>>>> >>>>> >>>> This provides absolutely no help. >>>> >>>> I look at my /var/log/Xorg.0.log and it tells me nothing. If I remove >>>> the keyboard and mouse input devices from xorg.conf, the log tells me >>>> that it is disabling all input devices and never says anything else. >>>> There is no evidence that hal does anything that X want to know about. >>>> How would I detect that my configuration file needs changing? Is there >>>> a message in Xorg.0.log to look for? Is there a help file somehwere >>>> which explains how to change your configuration file to allow hal to work? >>>> >>>> I cannot find any information anywhere in the system to allow me to >>>> debug my problems in any way. I want to have fully automatic >>>> configuration using whatever means will allow it. You explanations >>>> about the mysterious behavior of hal and xorg do not give me any >>>> information I can use in any way to solve my problems. >>>> >>>> >>>>> Set Options "AutoAddDevices" "off" and you have to configure everything >>>>> like you used to. >>>>> >>>>> >>>> I WANT to use the new facilities. Is it possible to debug my >>>> configuration problems? Where do I start? How do I enable this magical >>>> new world of letting hal do things for me? What changes do I make to >>>> xorg.conf to allow this? >>>> >>> Ok, are you using gdm, xdm, or startx? >>> >>> You need to ensure that dbus and hald are running first. Set >>> dbus_enable="YES" and hald_enable="YES" in your rc.conf. >>> >> This FAQ says to remplace dbus/hal by gnome_enable="YES" >> > > Correct, if you using gnome, that will enable hal and dbus. > >zircon.zircon.seattle.wa.us$ ps xa | egrep hal\|dbus 789 ?? Is 0:00.12 /usr/local/bin/dbus-daemon --system 946 ?? Ss 0:17.94 /usr/local/sbin/hald 951 ?? IW 0:00.00 hald-runner 968 ?? IW 0:00.00 hald-addon-mouse-sysmouse: /dev/ums0 (hald-addon-mous 986 ?? S 0:09.15 hald-addon-storage: /dev/cd0 (hald-addon-storage) 1027 ?? IW 0:00.00 /usr/local/bin/dbus-launch --exit-with-session 1082 ?? IW 0:00.00 dbus-launch --exit-with-session /usr/local/bin/seahor 1083 ?? Is 0:00.92 /usr/local/bin/dbus-daemon --fork --print-pid 7 --pri 42823 p1 DL+ 0:00.00 egrep hal|dbus Attached is /etc/rc.conf. /Joe> robert. > > >> http://www.freebsd.org/gnome/docs/faq2.html#full-gnome >> >>-------------- next part -------------- # -- sysinstall generated deltas -- # Sun Oct 23 06:00:05 2005 # Created: Sun Oct 23 06:00:05 2005 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. defaultrouter="192.168.1.1" hostname="zircon.zircon.seattle.wa.us" ifconfig_sk0="inet 192.168.1.3 netmask 255.255.255.0" linux_enable="YES" nfs_server_enable="YES" nfs_client_enable="YES" rpcbind_enable="YES" rpc_statd_enable="YES" rpc_lockd_enable="YES" sshd_enable="YES" usbd_enable="YES" svscan_enable="YES" moused_enable="YES" # Run the mouse daemon. moused_type="auto" # See man page for rc.conf(5) for available settings. moused_port="/dev/ums0" # Set to your mouse port. moused_flags="-m 3=1 -m 1=3 -m 4=6 -m 6=4 -m 5=7 -m 7=5" mysql_enable="YES" sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_map_queue_enable="NO" gdm_enable="YES" dumpdev="NO" # This file now contains just the overrides from /etc/defaults/rc.conf. # Please make all changes to this file, not to /etc/defaults/rc.conf. # Enable network daemons for user convenience. ntpdate_flags=140.142.16.34 ntpdate_enable="YES" ntpd_enable=YES #amd_enable="YES" dbus_enable="YES" polkitd_enable="YES" hald_enable="YES" # The Fish generated deltas - Sat May 5 14:27:39 2007 weak_mountd_authentication="YES" # added by mergebase.sh local_startup="/usr/local/etc/rc.d" cupsd_enable="YES" apache22_enable="YES"