From 1796d6a2b2b9ec6060c7daa07e318d94ac35160e Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 18 Dec 2008 14:41:18 +0000 Subject: - keyboarddrake: o do not configure hal directly, but write in /etc/sysconfig/keyboard Xkb information so hal can get them --- NEWS | 4 ++-- lib/keyboard.pm | 17 +---------------- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/NEWS b/NEWS index 4bd95e5..195c43f 100644 --- a/NEWS +++ b/NEWS @@ -1,8 +1,8 @@ - keyboarddrake: - o correctly handle default XkbModel - (so that we do not force pc105 when we should not) o do not configure hal directly, but write in /etc/sysconfig/keyboard Xkb information so hal can get them + o correctly handle default XkbModel + (so that we do not force pc105 when we should not) Version 0.65 - 8 December 2008 diff --git a/lib/keyboard.pm b/lib/keyboard.pm index 8d9460f..98b2477 100644 --- a/lib/keyboard.pm +++ b/lib/keyboard.pm @@ -604,6 +604,7 @@ sub write { log::l("keyboard::write $keyboard->{KEYBOARD}"); $keyboard = { %$keyboard }; + add2hash($keyboard, keyboard2full_xkb($keyboard)); delete $keyboard->{unsafe}; $keyboard->{KEYTABLE} = keyboard2kmap($keyboard); @@ -627,22 +628,6 @@ sub configure_xorg { Xconfig::default::config_keyboard($xfree_conf, $keyboard); $xfree_conf->write; } - my $hal_dir = "$::prefix/etc/hal/fdi/policy"; - if (-d $hal_dir) { - my $xkb = keyboard::keyboard2full_xkb($keyboard); - mkdir "$hal_dir/10osvendor"; - output("$hal_dir/10osvendor/10-keymap.fdi", sprintf(<<'EOF', $xkb->{XkbLayout}, $xkb->{XkbOptions})); - - - - - %s - %s - - - -EOF - } } sub configure_and_set_standalone { -- cgit v1.2.1