Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New HAL and Xorg
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
blueflame
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2006
Posts: 107
Location: Singapore

PostPosted: Tue Jul 29, 2008 1:08 am    Post subject: New HAL and Xorg Reply with quote

I just updated to the latest stable release of HAL. It talks about an FDI file and that I should remove the Input section from my xorg.conf file. Is this right? I don't want to bork my X without some reassurance.

Thanks.
Back to top
View user's profile Send private message
aronparsons
Tux's lil' helper
Tux's lil' helper


Joined: 04 Oct 2004
Posts: 117
Location: Virginia

PostPosted: Tue Jul 29, 2008 3:49 am    Post subject: Reply with quote

Try renaming your xorg.conf and see how it handles the autodetection. The only things in my xorg.conf now are related to the NVIDIA binary driver. I didn't have to put anything into the HAL FDI file, although my inputs are basic (keyboard with multimedia keys and a mouse with a few side buttons). All of my buttons are recognized with no additional configuration. If something breaks, you can always put your xorg.conf back in place. Those sections are deprecated yet, and at the rate of Xorg releases, won't be for some time.
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Tue Jul 29, 2008 7:49 am    Post subject: Reply with quote

As long as hal provides expected operation, don't worry about any strange messages.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Tue Jul 29, 2008 8:22 am    Post subject: Reply with quote

HAL takes over keyboard configuration... see this thread:
https://forums.gentoo.org/viewtopic-t-666275.html
Back to top
View user's profile Send private message
blueflame
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2006
Posts: 107
Location: Singapore

PostPosted: Tue Jul 29, 2008 8:49 am    Post subject: Reply with quote

This is scary shit! I'm comfortable with X because it basically works and has done so for me in Linux for years. On the other hand HAL is not something I know much about and I'm not feeling too comfortable giving it control of my keyboard and mouse.

Are there any write-up's on the changes? Will X still keep control of my keyboard and mouse or does HAL take exclusive control? Does this affect agetty that handles the virtual console terminals? Will Ctl-Alt-Bksp still kill X? What is HAL doing exactly?

So many questions ... :wink:
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Tue Jul 29, 2008 9:36 am    Post subject: Reply with quote

hal works here as an in-memory config file.
One of it's helper apps sets up the keyboard,
according to the settings passed to hal.
Back to top
View user's profile Send private message
knob-creek
n00b
n00b


Joined: 28 Jul 2008
Posts: 22
Location: Germany

PostPosted: Tue Jul 29, 2008 9:47 am    Post subject: No hal support in current stable X server Reply with quote

The current stable xorg-server (1.3) does not yet have a hal USE-flag, so i suspect, it still requires a regular xorg.conf.
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Tue Jul 29, 2008 12:02 pm    Post subject: Reply with quote

I "upgraded" to the new hal and it was hell.

After installing hal Xorg started throwing messages
like:

Code:
expected keysym, got XF86Info: line 914 of inet


and

Code:
(EE) Error compiling keymap (server-0)
(EE) XKB: Couldn't compile keymap


My xbindkeys setup to use the "special" keys on my laptop
(e.g. volume, brightness, etc) was destroyed.

If I logged out of X into kdm, X crashed hard.

How about this: if I removed the usb mouse, X crashed hard.

Reverting to hal 0.5.9-r1 fixed the problem. (though I still get
the keymap errors ??)

Say, what's with linux programming these days. Don't **users**
set up the configurations they like and the system respects
them?

Or is it now the windows way - where the programmers figure
they know your machine and your desires better than you?

(thats, WYSIWWTIBFY: what you see is what we think is best
for you).

Oops, sorry this turned into a rant. Any way to force the new
hal to use the old keysyms (or whatever the problem is)?
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Tue Jul 29, 2008 1:19 pm    Post subject: Reply with quote

You can always do
Code:
USE=-hal emerge -1 xorg-server

and go back to the old behavior (I suppose).
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Tue Jul 29, 2008 4:14 pm    Post subject: Reply with quote

Won't work in the long run. At least git of xorg-server suggests that.
@albright: while a silly pun comes to mind,
what you described is completly unrelated to hal.
a keysym has to be listed in /usr/share/X11/XKeysymDB to be recognized as one.

For the mouse problem, see if adding
'Option "AllowEmptyInput"' in 'Section "ServerLayout"' helps.
xbindkeys probably doesn't play well with evdev or you're trying
to set it up with incompatible rules (for evdev driver, rules must be evdev too).
But those xkb errors (not the warning) suggest that there's something wrong with one of the related
packages (maybe xkeyboard-config ?).
Back to top
View user's profile Send private message
blueflame
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2006
Posts: 107
Location: Singapore

PostPosted: Fri Aug 01, 2008 2:16 am    Post subject: Re: No hal support in current stable X server Reply with quote

knob-creek wrote:
The current stable xorg-server (1.3) does not yet have a hal USE-flag, so i suspect, it still requires a regular xorg.conf.


You're right... that's reassuring, for now.

I haven't rebooted or restarted X since I installed the new HAL. Kinda dreading that...
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Fri Aug 01, 2008 1:38 pm    Post subject: Reply with quote

Quote:
what you described is completly unrelated to hal.
a keysym has to be listed in /usr/share/X11/XKeysymDB to be recognized as one. ...
But those xkb errors (not the warning) suggest that there's something wrong with one of the related
packages (maybe xkeyboard-config ?).


That's right. The

Code:
(EE) Error compiling keymap (server-0)
(EE) XKB: Couldn't compile keymap


only occur if I log in using kdm. It I use xdm or just startx
from console, I don't get the errrors.

However, it remains true that the new hal assigns different
keycodes to my keys (that's why xbindkeys fails to work
properly). Plus it prevents xmodmap from operating. It
works once then throws errors about non-existent keycodes.

The new hal also causes X to crash when exiting KDE ... (a hard
crash, requiring sysrq key restart)
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Fri Aug 01, 2008 2:46 pm    Post subject: Reply with quote

See, if setting keyboard model to 'evdev managed'
in kde applet helps (that's additionally, not either/or).

One more thing, do you run hal/dbus as system services or rely on session manager ?
Back to top
View user's profile Send private message
pigeon768
l33t
l33t


Joined: 02 Jan 2006
Posts: 683

PostPosted: Fri Aug 01, 2008 2:56 pm    Post subject: Reply with quote

hal's configuration directory is /etc/hal/* if you want to override its defaults, although honestly I have no idea how any of it works. Instead of tooling around with xorg.conf I guess we tool around with /etc/hal/* now I guess - and that's fine with me. I'm sick of twiddling with ZAxisMapping etc. to get my mouse buttons to work, or restarting X whenever I plug a USB mouse into my laptop.

There's info on fixing/modifying keymaps on http://people.freedesktop.org/~hughsient/quirk/quirk-keymap-index.html
Back to top
View user's profile Send private message
anz
Apprentice
Apprentice


Joined: 05 Feb 2003
Posts: 279
Location: Vienna

PostPosted: Sat Aug 02, 2008 6:29 pm    Post subject: Reply with quote

Dear pigeon768,
thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you
for the link!!!!
(I have just gambled around with hal (/etc/hal/fdi/preprobe/) to get a huawei E160 (similar to E220, a umts usb stick, on tuxonice-2.6.24) (50%) working - now I will play with xorg and hal and the trackpoint again ... did i write it: thank you)
_________________
Greetings from Vienna
Back to top
View user's profile Send private message
g0rg0n
Tux's lil' helper
Tux's lil' helper


Joined: 18 Feb 2006
Posts: 83

PostPosted: Sun Aug 03, 2008 11:31 am    Post subject: Reply with quote

i've commented all the input thingys in the xorg.conf

and everything seems to be ok except synaptics =/
_________________
nicewarm.coffee
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Sun Aug 03, 2008 12:17 pm    Post subject: Reply with quote

Quote:
See, if setting keyboard model to 'evdev managed'
in kde applet helps (that's additionally, not either/or).


what applet would that be???

Quote:
One more thing, do you run hal/dbus as system services or rely on session manager ?


as system services ....

thanks for working on this!
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sun Aug 03, 2008 12:58 pm    Post subject: Reply with quote

albright wrote:
Quote:
See, if setting keyboard model to 'evdev managed'
in kde applet helps (that's additionally, not either/or).


what applet would that be???


How should I know I use neither KDE nor Gnome,
but there should be some standard keyboard settings applet.
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Sun Aug 03, 2008 2:47 pm    Post subject: Reply with quote

OK, I found where you set the keyboard to evdev-managed ...
(in kde control center).

But my **main problem** was I needed to emerge the
unstable xf86-input-evdev driver (that is, (~)2.0.2)).
Should have known that ... :oops:

Now, with the proper (at least working) /etc/hal/fdi/policy
files and reconfiguring .xbindkeysrc, everything seems to
be working. One curiosity - I have to wait about 5
seconds before running xmodmap when kde starts - I
guess kde is setting its own keyboard layout when it
starts.

I can plug/unplug usb mouse without
crashing X, synaptics pad works perfectly (have to leave
that input section in xorg.conf, remove keyboard and
external mouse sections).

Also, hibernating and sleep both appear to work.

Still getting keyboard errors when using KDM however.
But they seem to have no effect on anything.

Thanks for all the help -- it made a difference.
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
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
Page 1 of 1

 
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