Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Best upgrade method to Xserver1.5 with Hal and evdev
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3, ... 14, 15, 16  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Goshanecr
Apprentice
Apprentice


Joined: 17 Aug 2005
Posts: 158
Location: Russia

PostPosted: Thu Jan 08, 2009 4:12 pm    Post subject: Reply with quote

Thanks! (Спасибо :)) All works! After steps from APolozov
There is my 10-x11-input.fdi file:
Code:
<?xml version="1.0" encoding="UTF-8"?>
   <deviceinfo version="0.2">
      <device>
      <!-- Mouse configuration -->
         <match key="info.capabilities" contains="input.mouse">
            <merge key="input.x11_driver" type="string">evdev</merge>
         </match>

      <!-- Keyboard configuration -->
         <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.keys">
            <merge key="input.xkb.model" type="string">evdev</merge>
            <merge key="input.x11_driver" type="string">evdev</merge>
            <merge key="input.xkb.layout" type="string">us,ru</merge>
            <merge key="input.xkb.variant" type="string"></merge>
            <merge key="input.xkb.options" type="string">grp:ctrl_shift_toggle,grp_led:scroll,caps:internal_nocancel</merge>
         </match>
      </device>
   </deviceinfo>

And interest moment, in many post i see string in fdi file: <append key="input.xkb.options" type="stringlist">grp:ctrl_shift_toggle,grp_led:scroll,caps:internal_nocancel</append>, that string not work for me. But with merge and string all works. Thanks!
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Thu Jan 08, 2009 10:03 pm    Post subject: Reply with quote

@Goshanecr: just curious: are you sure you need hal-setup-keymap part ?
I did need it in 1.4 series, but not in 1.5.
Back to top
View user's profile Send private message
APolozov
Apprentice
Apprentice


Joined: 28 Sep 2006
Posts: 189
Location: Voronezh, Russia

PostPosted: Fri Jan 09, 2009 4:28 am    Post subject: Reply with quote

VoidMage wrote:
@Goshanecr: just curious: are you sure you need hal-setup-keymap part ?
I did need it in 1.4 series, but not in 1.5.

halsetup-keymap is needed for tune keyboard to use localized keymaps (Russian for example)
If you use en(us) or another kompatible by default keymap - skip this step :)
_________________
Excuse my bad English, I only study it.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Fri Jan 09, 2009 8:29 pm    Post subject: Reply with quote

Well, last time I checked, pl was not really compatible.
Actually, as far as I can tell by greping hal sources,
hal-setup-keymap by design was meant to be used
for input.keymap.data entries, for remapping keycodes.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sat Jan 10, 2009 2:27 am    Post subject: Reply with quote

When this thing will it the stable branch, I hope that we will not live again the expat hell frenzy :P
Back to top
View user's profile Send private message
jancici
Apprentice
Apprentice


Joined: 27 Jan 2004
Posts: 284
Location: Slovakia

PostPosted: Sat Jan 10, 2009 2:03 pm    Post subject: Reply with quote

list of XkbModel is in /usr/share/X11/xkb/rules/FOR_EXAMPLE_EVDEV.LST

so I did swap configuration of keyboards, I have logitech keyboard connected to my asus laptop

here is my fdi :
Code:
cat /etc/hal/fdi/policy/10-x11-input.fdi
<?xml version="1.0" encoding="utf-8"?>
<deviceinfo version="0.2">

    <!-- kalvesnica -->
    <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.keys">
      <merge key="input.x11_driver" type="string">evdev</merge>
      <merge key="input.x11_options.XkbRules" type="string">evdev</merge>

      <match key="info.product" contains="Logitech">
        <merge key="input.x11_options.XkbModel" type="string">logitech_base</merge>
      </match>
     
      <match key="info.product" contains="AT Translated Set 2 keyboard">
        <merge key="input.x11_options.XkbModel" type="string">asus_laptop</merge>
      </match>

      <merge key="input.x11_options.XkbLayout" type="string">gb,sk</merge>
      <merge key="input.x11_options.XkbVariant" type="string">,qwerty</merge>
      <merge key="input.x11_options.XkbOptions" type="string">grp:alt_shift_toggle,grp_led:scroll</merge>
    </match>
   
    <!-- mys -->
    <match key="info.capabilities" contains="input.mouse">
        <merge key="input.x11_driver" type="string">evdev</merge>
    </match>

    <!-- touchpad -->
    <match key="info.capabilities" contains="input.touchpad">
        <match key="info.product" contains="SynPS/2">
          <merge key="input.x11_driver" type="string">synaptics</merge>
          <merge key="input.x11_options.SHMConfig" type="string">true</merge>
        </match>
    </match>

</deviceinfo>
Back to top
View user's profile Send private message
BrentNorin
n00b
n00b


Joined: 31 Jan 2007
Posts: 60
Location: Akron, Ohio

PostPosted: Sun Feb 01, 2009 7:21 pm    Post subject: Reply with quote

Does anyone have any idea on how to get special keys like the sound buttons on an HP dv5020 to work?
Back to top
View user's profile Send private message
blossa
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 169

PostPosted: Wed Feb 11, 2009 10:36 am    Post subject: Reply with quote

I ran into this "hal and evdev" issue when doing a regular "emerge uD world" the other day and now I cannot get it to work... :( Anyone that has a hint to give me? Here is more info:

https://forums.gentoo.org/viewtopic-t-735533.html

Thanks in advance
_________________
QX9650, P5E64WS Pro, 4x1GB
Back to top
View user's profile Send private message
Crooksey
Apprentice
Apprentice


Joined: 26 Apr 2006
Posts: 239
Location: Vatican City

PostPosted: Sat Feb 14, 2009 8:54 am    Post subject: Reply with quote

What fdi file would I need for a UK layout?

I have tried...

Code:

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.keys">
          <merge key="input.x11_options.XkbRules" type="string">evdev</merge>
          <merge key="input.x11_options.XkbModel" type="string">evdev</merge>
          <merge key="input.x11_options.XkbLayout" type="string">uk</merge>
          <merge key="input.x11_options.XkbOptions" type="string">altwin:menu</merge>
    </match>
  </device>
</deviceinf


But that dosent work, would anyone be able to put up a working version?
Back to top
View user's profile Send private message
milomak
Apprentice
Apprentice


Joined: 10 Apr 2008
Posts: 287

PostPosted: Sat Feb 14, 2009 4:02 pm    Post subject: Reply with quote

Is there a tool that converts existing xorg settings to fdi files?
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sat Feb 14, 2009 4:39 pm    Post subject: Reply with quote

There's no 'uk' layout (read /usr/share/X11/xkb/rules/xorg.lst).
If you're looking for en_GB, then the layout is 'gb'.
Back to top
View user's profile Send private message
Dan
Veteran
Veteran


Joined: 25 Oct 2005
Posts: 1302

PostPosted: Fri Feb 20, 2009 7:30 pm    Post subject: Reply with quote

perfect touchpad fdi for AlpsTouchpad with tap clicks etc..
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>                                                               
<deviceinfo version="0.2">                                                                               
  <device>                                                                                               
   <!-- AlpsTouchPad -->                                                                                 
    <match key="info.capabilities" contains="input.touchpad">                                             
        <merge key="input.x11_driver" type="string">synaptics</merge>                                     
        <merge key="input.x11_options.SHMConfig" type="string">on</merge>                                 
   <!-- Tapping -->                                                                                       
        <merge key="input.x11_options.TapButton1" type="string">1</merge>                                 
        <merge key="input.x11_options.TapButton2" type="string">2</merge>                                 
        <merge key="input.x11_options.TapButton3" type="string">3</merge>                                 
   <!-- Scrolling up/down -->                                                                             
        <merge key="input.x11_options.VertEdgeScroll" type="string">1</merge>                             
        <merge key="input.x11_options.HorizEdgeScroll" type="string">1</merge>                           
   <!-- Corner clicks -->                                                                                 
        <merge key="input.x11_options.RBCornerButton" type="string">2</merge>                             
        <merge key="input.x11_options.RTCornerButton" type="string">3</merge>
   <!-- Dans Addons -->
        <merge key="input.x11_options.SendCoreEvents" type="string"></merge>
        <merge key="input.x11_options.protocol" type="string">auto-dev</merge>
        <merge key="input.x11_options.LeftEdge" type="string">130</merge>
        <merge key="input.x11_options.TopEdge" type="string">130</merge>
        <merge key="input.x11_options.BottomEdge" type="string">640</merge>
        <merge key="input.x11_options.RightEdge" type="string">840</merge>
        <merge key="input.x11_options.FingerLow" type="string">7</merge>
        <merge key="input.x11_options.FingerHigh" type="string">8</merge>
        <merge key="input.x11_options.Emulate3Buttons" type="string">on</merge>
        <merge key="input.x11_options.MaxTapTime" type="string">180</merge>
        <merge key="input.x11_options.MinTapTime" type="string">110</merge>
        <merge key="input.x11_options.ClickTime" type="string">0</merge>
        <merge key="input.x11_options.EmulateMidButtonTime" type="string">75</merge>
        <merge key="input.x11_options.VertScrollDelta" type="string">20</merge>
        <merge key="input.x11_options.HoirizScrollDelta" type="string">20</merge>
        <merge key="input.x11_options.MinSpeed" type="string">0.40</merge>
        <merge key="input.x11_options.MaxSpeed" type="string">0.65</merge>
        <merge key="input.x11_options.AccelFactor" type="string">0.030</merge>
        <merge key="input.x11_options.EdgeMotionMinSpeed" type="string">200</merge>
        <merge key="input.x11_options.EdgeMotionMaxSpeed" type="string">200</merge>
        <merge key="input.x11_options.UpDownScrolling" type="string">1</merge>
        <merge key="input.x11_options.CircularScrolling" type="string">1</merge>
        <merge key="input.x11_options.CircScrollDelta" type="string">0.1</merge>
        <merge key="input.x11_options.CircScrollTrigger" type="string">3</merge>
        <merge key="input.x11_options.VertEdgeScroll" type="string">on</merge>
    </match>
  </device>
</deviceinfo>

_________________
- Failure is not an option. It's bundled with your software.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sat Feb 21, 2009 12:45 am    Post subject: Reply with quote

milomak wrote:
Is there a tool that converts existing xorg settings to fdi files?


Right now, I don't think so.
Back to top
View user's profile Send private message
red-wolf76
l33t
l33t


Joined: 13 Apr 2005
Posts: 714
Location: Rhein-Main Area

PostPosted: Sat Feb 21, 2009 10:58 pm    Post subject: Reply with quote

Anyone got a working Wacom tablet config in his fdi? A Bamboo One would be perfect, but anything'll do for starters...
_________________
0mFg, G3nt00 r0X0r$ T3h B1g!1111 ;)

Use sane CFLAGS! If for no other reason, do it for the lulz!
Back to top
View user's profile Send private message
sirro
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1472
Location: aachen.nrw.de.eu

PostPosted: Mon Feb 23, 2009 2:04 pm    Post subject: Reply with quote

d2_racing wrote:
milomak wrote:
Is there a tool that converts existing xorg settings to fdi files?


Right now, I don't think so.


At the link from this output there is python-script for an auto-conversion:
x11-drivers/xf86-input-evdev-2.1.2:0::gentoo wrote:
elog: If your XKB (keyboard settings) stopped working,
elog: you may uninstall this driver or move your XKB configuration.
elog: Download an example from http://dev.gentoo.org/~compnerd/temp/hal-config-examples/
elog: (these will be installed with sys-apps/hal soon),
elog: and drop it into /etc/hal/fdi/policy/

I haven't tried it though.
Back to top
View user's profile Send private message
red-wolf76
l33t
l33t


Joined: 13 Apr 2005
Posts: 714
Location: Rhein-Main Area

PostPosted: Tue Feb 24, 2009 1:45 pm    Post subject: Reply with quote

Tried the switchover to evdev on a standard config and it went without hitches. I followed the step-by-step guide that someone posted on the last page or so... Ok, I didn't do "emerge --depclean", but that's the only thing I omitted. 8)

Anyone have a bluetooth DiNovo keyboard and mouse working with this? I had serious trouble while upgrading to Xorg-1.5.3 before, so am now stuck on 1.5.2 on this here box...
_________________
0mFg, G3nt00 r0X0r$ T3h B1g!1111 ;)

Use sane CFLAGS! If for no other reason, do it for the lulz!
Back to top
View user's profile Send private message
sirro
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1472
Location: aachen.nrw.de.eu

PostPosted: Sun Mar 01, 2009 12:15 pm    Post subject: Reply with quote

I have a strange layout-issue: every second time I switch back from the de-layout to the gb-layout. Here is a sample text I wrote while switching the keyboard-layout every line.

Code:
gb: test
de: test
ŋ”: ŧeßŧ
de: test
gb: test
de: test
ŋ”: ŧeßŧ
de: test

The ŋ”-lines should be "gb: test" too. So every second time the layout is messed up, but only the gb.

My hal-config is this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<deviceinfo version="0.2">
    <match key="info.capabilities" contains="input.keys">
      <merge key="input.x11_options.XkbLayout" type="string">gb,de</merge>
      <merge key="input.x11_options.XkbVariant" type="string"></merge>
      <merge key="input.x11_options.XkbOptions" type="string">grp:lwin_toggle,grp_led:scroll</merge>
    </match>
</deviceinfo>


Has anyone any idea about this? (I'm using sys-apps/hal-0.5.11-r8)
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Sun Mar 01, 2009 12:46 pm    Post subject: Reply with quote

try replacing the variant line with this:
Code:
<merge key="input.xkb.rules" type="string">xorg</merge>

_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
sirro
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1472
Location: aachen.nrw.de.eu

PostPosted: Sun Mar 01, 2009 12:57 pm    Post subject: Reply with quote

Ð→ðn;ŧ łø¶ĸ. (Didn't work) :-(

Now I've got:
Code:
<?xml version="1.0" encoding="utf-8"?>
<deviceinfo version="0.2">
    <match key="info.capabilities" contains="input.keys">
      <merge key="input.x11_options.XkbLayout" type="string">gb,de</merge>
      <merge key="input.xkb.rules" type="string">xorg</merge>
      <merge key="input.x11_options.XkbOptions" type="string">grp:lwin_toggle,grp_led:scroll</merge>
    </match>
</deviceinfo>
Back to top
View user's profile Send private message
sirro
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1472
Location: aachen.nrw.de.eu

PostPosted: Fri Mar 06, 2009 10:27 pm    Post subject: Reply with quote

sirro wrote:
I have a strange layout-issue: every second time I switch back from the de-layout to the gb-layout. Here is a sample text I wrote while switching the keyboard-layout every line.

Any other ideas?
I tried downgrading from xorg-server-1.6 to 1.5, but that didn't help either. So I'm currently stuck with this problem :-(
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sat Mar 07, 2009 11:56 pm    Post subject: Reply with quote

Check your hal settings (not fdi files, actual settings) and after every layout switch
see the output of 'setxkbmap -print'.
Back to top
View user's profile Send private message
sirro
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1472
Location: aachen.nrw.de.eu

PostPosted: Sun Mar 08, 2009 9:17 pm    Post subject: Reply with quote

Thanks for your reply.

VoidMage wrote:
Check your hal settings (not fdi files, actual settings)

I checked /etc/dbus-1/system.d/hal.conf and /etc/udev/rules.d/90-hal.rules (that's all relevant conf-files hal installed) but saw nothing suspicious (though I have to admit that I don't know what to look for)


VoidMage wrote:
after every layout switch see the output of 'setxkbmap -print'.

All the same (checked with diff), even with "-v 10". This is the output

Code:
Setting verbose level to 10
locale is C
Applied rules from evdev:
model:      evdev
layout:     gb,de
options:    grp:lwin_toggle,grp_led:scroll
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete+ledscroll(group_lock)
symbols:    pc+gb+de:2+inet(evdev)+group(lwin_toggle)
geometry:   pc(pc104)
xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete+ledscroll(group_lock)"        };
        xkb_symbols   { include "pc+gb+de:2+inet(evdev)+group(lwin_toggle)"     };
        xkb_geometry  { include "pc(pc104)"     };
};
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sun Mar 08, 2009 10:14 pm    Post subject: Reply with quote

I was talking about something like:
Code:

hal-find-by-capability --capability input.keys |xargs hal-device

to see if those settings are actually applied, but setxkbmap output suggest they are.

If setxkbmap doesn't change even when the mappings are messed up, then I don't really have an idea what to do.

If your xkeyboard-config is recent enough, you could see if setting rules to evdev changes anything, but I doubt it will.
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Mon Mar 09, 2009 6:54 pm    Post subject: Reply with quote

I have a pretty standard US configuration. Everything just worked after the upgrade following the many suggestions in this thread. I needed only one hal .fdi file for synaptics touchpad. I have a wireless usb Logitech v550 mouse which worked without any needed configuration (all the buttons work) :)
My current xorg.conf
Code:
Section "ServerFlags"
    Option  "AutoAddDevices"     "on"
    Option  "AutoEnableDevices"  "on"
    Option  "AllowEmptyInput"    "on"
EndSection

Section "Device"
    Identifier  "Device0"
    Driver      "nvidia"
    Option      "DPI"           "100x100"
    VendorName  "NVIDIA Corporation"
EndSection

Thanks to everyone who contributed to this thread and made the transition for me as smooth as possible. :D
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
sirro
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1472
Location: aachen.nrw.de.eu

PostPosted: Mon Mar 09, 2009 7:46 pm    Post subject: Reply with quote

VoidMage wrote:
I was talking about something like:
Code:

hal-find-by-capability --capability input.keys |xargs hal-device

to see if those settings are actually applied, but setxkbmap output suggest they are.


Seems like all settings from the fdi are applied:
Quote:
udi = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input'
info.subsystem = 'input' (string)
info.addons.singleton = { 'hald-addon-input' } (string list)
linux.sysfs_path = '/sys/class/input/input2/event2' (string)
input.originating_device = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port' (string)
info.product = 'AT Translated Set 2 keyboard' (string)
info.parent = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port' (string)
info.category = 'input' (string)
info.udi = '/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input' (string)
input.xkb.rules = 'xorg' (string)
info.capabilities = { 'input', 'input.keyboard', 'input.keypad', 'input.keys', 'button' } (string list)
input.xkb.model = 'evdev' (string)
linux.hotplug_type = 2 (0x2) (int)
input.xkb.layout = 'us' (string)
linux.subsystem = 'input' (string)
input.xkb.variant = '' (string)
linux.device_file = '/dev/input/event2' (string)
input.x11_driver = 'evdev' (string)
input.device = '/dev/input/event2' (string)
input.x11_options.XkbLayout = 'gb,de' (string)
input.product = 'AT Translated Set 2 keyboard' (string)
input.x11_options.XkbOptions = 'grp:lwin_toggle,grp_led:scroll' (string)


But one thing puzzles me: The bold line where xkb.layout is set to 'us' (while input.x11_options.XkbLayout layout is 'gb,de'). Is that normal?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2, 3, ... 14, 15, 16  Next
Page 2 of 16

 
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