ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] hal & xkb again
@ 2008-04-27 14:09 Sergey Bolshakov
  2008-04-27 15:00 ` Sergey Bolshakov
  0 siblings, 1 reply; 3+ messages in thread
From: Sergey Bolshakov @ 2008-04-27 14:09 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 549 bytes --]


Hi.
After recent upgrade i've lost my xkb settings,
made in /etc/hal/fdi/policy/x11-input.fdi again.

$ rpmquery -a hal libhal
hal-0.5.11-alt4.1
libhal-0.5.11-alt4.1

$ setxkbmap -print  
xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete+ledcaps(group_lock)"  };
        xkb_symbols   { include "pc+us+inet(evdev)+group(switch)+group(caps_toggle)"    };
        xkb_geometry  { include "pc(pc104)"     };
};

x11-input.fdi attached:

[-- Attachment #2: x11-input.fdi --]
[-- Type: text/plain, Size: 3320 bytes --]

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
  
    <!-- The way this works: 
    
    Match against some input device (see the HAL specification for more 
    information), and then merge in keys, which you can use to specify 
    the configuration similar to the way you would in xorg.conf. You will 
    need to restart HAL after making changes. If you are having issues,
    starting X with the -logverbose 7 flag may yield useful information.
    
    Keys Supported:
    
        Key "input.x11_driver" (string)
            This specifies the driver to use. You MUST specify this option,
            or a driver will not be loaded and the rest will be ignored by
            Xorg
            
        Key "input.x11_options.<option name>" (string)
            This allows you to specify arbitrary options to pass to the driver.
            Anything you would normally specify in xorg.conf goes here. So, for
            option "Mode" in xorg.conf, you would specify the key name of
            "input.x11_options.Mode". 

	    Do not specify "input.x11_options.Device" since "input.device"
	    will be used automatically.

        Legacy Keys
	     "input.xkb.rules"
             "input.xkb.model"
             "input.xkb.layout"
             "input.xkb.variant"
             "input.xkb.options"
             
            These keys are deprecated. Use these instead:
	     "input.x11_options.XkbRules"
	     "input.x11_options.XkbModel"
	     "input.x11_options.XkbLayout"
	     "input.x11_options.XkbVariant"
	     "input.x11_options.XkbOptions"

	    See the evdev documentation for more information. 
    
    You will probably want to add the following option to the ServerFlags of 
    your xorg.conf:
    
        Option "AllowEmptyInput" "True"
        
    FIXME: Support tablets too. 
    TODO: I think its fixed, can't test
    
    -->
    
    <match key="info.capabilities" contains="input.mouse">
      <merge key="input.x11_driver" type="string">mouse</merge>
      <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.keys">
      <merge key="input.x11_options.XkbRules" type="string">base</merge>

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

      <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:caps_toggle,grp:switch,grp_led:caps,altwin:meta_hyper</merge>
    </match>
    <match key="info.capabilities" contains="input.touchpad">
      <merge key="input.x11_driver" type="string">synaptics</merge>
    </match>
  </device>
</deviceinfo>

[-- Attachment #3: Type: text/plain, Size: 5 bytes --]


-- 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [devel] hal & xkb again
  2008-04-27 14:09 [devel] hal & xkb again Sergey Bolshakov
@ 2008-04-27 15:00 ` Sergey Bolshakov
  2008-04-28  9:02   ` Andrey Rahmatullin
  0 siblings, 1 reply; 3+ messages in thread
From: Sergey Bolshakov @ 2008-04-27 15:00 UTC (permalink / raw)
  To: devel


Полечилось добавлением 'старых' опций:

--- x11-input.fdi~       2008-04-27 18:58:59 +0400
+++ x11-input.fdi   2008-04-27 18:53:59 +0400
@@ -76,6 +76,9 @@
       <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:caps_toggle,grp:switch,grp_led:caps,altwin:meta_hyper</merge>
+      <merge key="input.xkb.layout" type="string">us,ru</merge>
+      <merge key="input.xkb.variant" type="string">,winkeys</merge>
+      <merge key="input.xkb.options" type="string">grp:caps_toggle,grp:switch,grp_led:caps,altwin:meta_hyper</merge>
     </match>
     <match key="info.capabilities" contains="input.touchpad">
       <merge key="input.x11_driver" type="string">synaptics</merge>

-- 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [devel] hal & xkb again
  2008-04-27 15:00 ` Sergey Bolshakov
@ 2008-04-28  9:02   ` Andrey Rahmatullin
  0 siblings, 0 replies; 3+ messages in thread
From: Andrey Rahmatullin @ 2008-04-28  9:02 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 382 bytes --]

On Sun, Apr 27, 2008 at 07:00:21PM +0400, Sergey Bolshakov wrote:
> Полечилось добавлением 'старых' опций:
Мда, надо будет попробовать.

-- 
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(8):

> > Продолжение истории...
> Угу.. в общем Стас опять скатился от практики в теорию ;)
Не скатился, а планомерно добавил ... совсем немного ;)
		-- inger in devel@

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-28  9:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-27 14:09 [devel] hal & xkb again Sergey Bolshakov
2008-04-27 15:00 ` Sergey Bolshakov
2008-04-28  9:02   ` Andrey Rahmatullin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git