Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hal and keyboard problems
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
blue_american
Tux's lil' helper
Tux's lil' helper


Joined: 16 Sep 2005
Posts: 92
Location: Coimbra, Portugal

PostPosted: Mon Jun 16, 2008 11:00 am    Post subject: hal and keyboard problems Reply with quote

Hi everyone,

I'm having problems with hal and my keyboard (Layout Macbook PT in KDE). If I start my KDE session with hal running, I don't have cursor keys (up, down, etc), but if I start it without hal, everything is fine.

Is anyone having the same problem?

Note that this is only happening when using layout in PT, in US everything works fine.

Best regards,

Rui Vilão
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Mon Jun 16, 2008 5:11 pm    Post subject: Reply with quote

So why don't you simply configure hal to use pt layout ?
If you didn't notice, it's probably hal/evdev issue.
Back to top
View user's profile Send private message
blue_american
Tux's lil' helper
Tux's lil' helper


Joined: 16 Sep 2005
Posts: 92
Location: Coimbra, Portugal

PostPosted: Mon Jun 16, 2008 5:19 pm    Post subject: Reply with quote

I'm using kbd as keyboard driver.

I will look at your suggestion and report back.

Thanks for answering.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Mon Jun 16, 2008 6:25 pm    Post subject: Reply with quote

I think that you just think that you're using kbd driver.
Read your Xorg log.
Back to top
View user's profile Send private message
blue_american
Tux's lil' helper
Tux's lil' helper


Joined: 16 Sep 2005
Posts: 92
Location: Coimbra, Portugal

PostPosted: Mon Jun 16, 2008 6:38 pm    Post subject: Reply with quote

In fact it's loading both:

(II) Module kbd: vendor="X.Org Foundation"
compiled for 1.4.0.90, module version = 1.3.1
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 2.0

(II) LoadModule: "evdev"
(II) Loading /usr/lib/xorg/modules/input//evdev_drv.so
(II) Module evdev: vendor="X.Org Foundation"
compiled for 0.0.0, module version = 1.0.0
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 2.0

How can I be sure which module is in use?

and

How can I configure hal to use PT layout?
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Mon Jun 16, 2008 8:27 pm    Post subject: Reply with quote

Well, for xorg-server 1.4.2, I've got /etc/hal/fdi/policy/10-x11-input.fdi that looks like this:
Code:

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
<!--
        <match key="info.capabilities" contains="input.keys">
      <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">pc104</merge> -->
      <merge key="input.xkb.rules" type="string">evdev</merge>
      <merge key="input.xkb.layout" type="string">pl</merge>
      <append key="input.xkb.options" type="strlist">altwin:menu</append>
    </match>
  </device>
</deviceinfo>

I think it's rather obvious how your should look like.
Of course, hal has to reread its configuration after you put a similar file there.
The info.callouts.add section is commented, as it was only needed before 1.4.0.90-r4,
with 1.4.2 it's not.
There are many threads about it.
And be aware, that your desktop env may mess up things, for evdev, keyboard must be set there too (to 'evdev managed').


Last edited by VoidMage on Mon Jun 16, 2008 8:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
blue_american
Tux's lil' helper
Tux's lil' helper


Joined: 16 Sep 2005
Posts: 92
Location: Coimbra, Portugal

PostPosted: Mon Jun 16, 2008 8:30 pm    Post subject: Reply with quote

Thanks.
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