Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Aug 2010 02:04:19 +1100
From:      Dima Panov <fluffy@FreeBSD.org>
To:        freebsd-questions@FreeBSD.org, Polytropon <freebsd@edvax.de>
Subject:   Re: serious (for me) Xorg 7.5 mouse/kbd problem in 8.1-STABLE
Message-ID:  <201008260204.20125.fluffy@freebsd.org>
In-Reply-To: <20100825160310.760adad6.freebsd@edvax.de>
References:  <20100825132921.GJ55269@itcom245.staff.itd.umich.edu> <20100825160310.760adad6.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 26 August 2010 01:03:10 Polytropon wrote:
> On Wed, 25 Aug 2010 09:29:21 -0400, William Bulley <web@umich.edu> wrote:
> > Interestingly enough, I do have this line in my /etc/X11/xorg.conf file:
> > 
> >    Section "InputDevice"
> >       Option      "XkbOptions" "terminate:ctrl_alt_bksp"
> >    EndSection
> > 
> > But that never has seemed to work.  :-(
> 
> In case you're using HAL + DBUS, the setting now has to be coded
> in XML in some arbitrary file at a decentral location buried deep
> in the /usr/local subtree. According to the handbook
> 
> 	5.4.2 Configuring X11
> 	http://www.freebsd.org/doc/handbook/x-config.html
> 
> this is /usr/local/etc/hal/fdi/policy/x11-input.fdi with
> 
> 	<?xml version="1.0" encoding="ISO-8859-1"?>
> 	<deviceinfo version="0.2">
> 	  <device>
> 	    <match key="info.capabilities" contains="input.keyboard">
> 	      <merge key="input.x11_options.XkbOptions" type="string">terminate:ctrl_alt_bksp</merge>
> 	    </match>
> 	  </device>
> 	</deviceinfo>
> 
> as well as /etc/X11/xorg.conf will need to be added
> 
> 	Section "ServerFlags"
> 		Option "DontZap"   "off"
> 	EndSection
> 
> And the handbook also suggests a reboot (?!) to make sure HAL will
> pick up the new setting. Next time, you will have to reboot in order
> to make a mouse pointer position change visible. :-)
> 
By the way, configureing input options via hald doesn't work for me

X itself got flags from hal, write correct logfile about layout and options (us+ru+typo),
keys for layout switching, but really it doesn't work. 
configuring keyboard via xorg.conf give me working layout, but no lvl3 (typographic symbols)

So all options now konfigured via KDE system settings, which call setxkbmap when init session

my /usr/local/etc/hal/fdi/policy/10-x11-input.fdi

<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
  <device>

    <!-- KVM emulates a USB graphics tablet which works in absolute coordinate mode -->
    <match key="input.product" contains="QEMU USB Tablet">
       <merge key="input.x11_driver" type="string">evdev</merge>
    </match>

    <match key="info.capabilities" contains="input.tablet">
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.x11_driver" type="string">evdev</merge>
      </match>
    </match>

    <match key="info.capabilities" contains="input.keyboard">
      <!-- If we're using Linux, we use evdev by default (falling back to
           keyboard otherwise). -->
      <merge key="input.x11_driver" type="string">kbd</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.x11_driver" type="string">evdev</merge>
      </match>
    </match>

    <!-- Setup x11 keyboard layouts -->
    <match key="info.capabilities" contains="input.keymap">
      <append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
    </match>

    <match key="info.capabilities" contains="input.keyboard">
      <merge key="input.x11_options.XkbRules" type="string">base</merge>
      <merge key="input.x11_options.XkbModel" type="string">pc104</merge>
      <merge key="input.x11_options.XkbLayout" type="string">us,ru</merge>
      <merge key="input.x11_options.XkbVariant" type="string">,winkeys</merge>
      <merge key="input.x11_options.XkbOptions" type="string">grp:ctr_shift_toggle,grp_led:scroll,altwin:meta_win,lv3:ralt_switch,misc:typo</merge>
    </match>

  </device>
</deviceinfo>


[fluffy@Fluffy] /> uname -a
FreeBSD Fluffy.Khv.RU 9.0-900016-CURRENT FreeBSD 9.0-900016-CURRENT #1 r211145M: Wed Aug 11 13:06:07 VLAST 2010     root@Fluffy.Khv.RU:/usr/obj/usr/src/sys/Spot  amd64

-- 
Dima "Red Fox" Panov @ Home | C73E 2B72 1FFD 61BD E206 1234 A626 76ED 93E3 B018
Khabarovsk, Russia          | 2D30 2CCB 9984 130C 6F87 BAFC FB8B A09D D539 8F29
KDE@FreeBSD Team | FreeBSD committer since 10.08.2009 | FreeBSD since Sept 1995
Twitter: fluffy_khv | Skype: dima.panov | Jabber.[org|ru]/GTalk/QIP: fluffy.khv



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008260204.20125.fluffy>