maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   Arch Linux ARM on N900 (https://talk.maemo.org/showthread.php?t=81892)

int_ua 2013-02-03 02:30

Re: Arch Linux ARM on N900
 
Quote:

Originally Posted by Skry (Post 1318770)
man chvt

I've found an ideal solution:
Code:

# echo "
altgr keycode 65 = Console_1
altgr keycode 66 = Console_7" >> /usr/share/kbd/keymaps/arm/qwerty/nokia-n900.map
# loadkeys /usr/share/kbd/keymaps/arm/qwerty/nokia-n900.map

Now Fn+Volume keys switch vts. I think that's a good addition to the config for anyone's benefit, isn't it?

Trying to make
altgr keycode 103 = Page_Up
altgr keycode 108 = Page_Down

Also,
camera halfway down = keycode 528
camera pressed = keycode 212

From Ubuntu I remember that while 212 was mapped to something, 528 wasn't.

Update: the keymap doesn't work after I start X (lxdm -> lxde)...

Skry 2013-02-03 12:38

Re: Arch Linux ARM on N900
 
Quote:

Originally Posted by int_ua (Post 1320286)
I've found an ideal solution:
Code:

# echo "
altgr keycode 65 = Console_1
altgr keycode 66 = Console_7" >> /usr/share/kbd/keymaps/arm/qwerty/nokia-n900.map
# loadkeys /usr/share/kbd/keymaps/arm/qwerty/nokia-n900.map

Now Fn+Volume keys switch vts. I think that's a good addition to the config for anyone's benefit, isn't it?

Yes, this wil be included, you can send me a patch or do a pull request on github once I get all this in there. Working on it.

Quote:

Originally Posted by int_ua (Post 1320286)
Trying to make
altgr keycode 103 = Page_Up
altgr keycode 108 = Page_Down

Yes, we will want this one too if you find sane mapping for it.

EDIT: that's fine for me, wasn't fully awake when reading.

Quote:

Originally Posted by int_ua (Post 1320286)
Also,
camera halfway down = keycode 528
camera pressed = keycode 212

From Ubuntu I remember that while 212 was mapped to something, 528 wasn't.

If you can find some useful use for those, go ahead and suggest.

Quote:

Originally Posted by int_ua (Post 1320286)
Update: the keymap doesn't work after I start X (lxdm -> lxde)...

This is like it is supposed to be, keymappings for VC and X are defined separately. For X we probably need to discuss about shipping our own map, and about what changes we will include in it.

int_ua 2013-02-03 14:35

Re: Arch Linux ARM on N900
 
Quote:

Originally Posted by Skry (Post 1320365)
If you can find some useful use for those, go ahead and suggest.

Maybe meta or compose? I'm not sure yet if we can make it a modifier

int_ua 2013-02-03 15:19

Re: Arch Linux ARM on N900
 
Quote:

Originally Posted by Skry (Post 1320365)
This is like it is supposed to be, keymappings for VC and X are defined separately. For X we probably need to discuss about shipping our own map, and about what changes we will include in it.

Why not make them identical?

edited
Quote:

(EE) Error loading keymap /var/lib/xkb/server-0.xkm
(EE) XKB: Failed to load keymap. Loading default keymap instead.

Skry 2013-02-03 16:57

Re: Arch Linux ARM on N900
 
Quote:

Originally Posted by int_ua (Post 1320421)
Why not make them identical?

Searching for the file... it's in the config:
Code:

Option                "XkbModel" "nokiarx51"
and location is /usr/share/X11/xkb/rules/ :
https://bbs.archlinux.org/viewtopic.php?id=84144
But why doesn't it work?

VC mapping is single layout, however we have device with differentiating keypads and a lot of different mappings for different languages. So to some extent we could make English mapping similar as it is for VC, others probably need some extra work, like in my case, I have a device with fi/se keyboard so the arrow key stuff etc obviously would be non functional as it is.

/usr/share/X11/xkb/symbols/nokia_vndr/rx-51 ?

int_ua 2013-02-03 17:02

Re: Arch Linux ARM on N900
 
Quote:

Originally Posted by Skry (Post 1320460)
VC mapping is single layout, however we have device with differentiating keypads and a lot of different mappings for different languages. So to some extent we could make English mapping similar as it is for VC, others probably need some extra work, like in my case, I have a device with fi/se keyboard so the arrow key stuff etc obviously would be non functional as it is.

/usr/share/X11/xkb/symbols/nokia_vndr/rx-51 ?

oh, didn't think of that.
I was just editing my post when you answered, check it again, I've added Xorg.log errors.

Älä hakkaa 2013-02-04 12:47

Re: Arch Linux ARM on N900
 
I'm very keen to get different keyboard mappings with my bluetooth keyboard working.¹ In Maemo, despite all efforts, I'm stuck with it behaving as if it was the internal keyboard, i.e. no numbers but long-pressing q gives 1 etc. Chances are that things are easier with a newer kernel and codebase.

Anyway, two indispensable tools here are evtest and xinput. Both don't pop up in the standard Arch (Arm) packages list but they have very little dependencies to compile them ad hoc.

______
¹ Medion P81034 = Perixx PERIBOARD-804i

peterleinchen 2013-02-04 20:07

Re: Arch Linux ARM on N900
 
1 Attachment(s)
Quote:

Originally Posted by 3clch4pawlakov (Post 1320172)
I have a problem with internet connection. It connects fine( netcfg or wicd ) but after some time( varies from few seconds to several minutes ) it stops working( it doesn't ping anything, even other hosts on LAN network ) but it still says "Associated" in iwconfig and shows IP adress in ifconfig, in other words it still says that it's connected.
I'm connecting to a WPA secured wi-fi network.

Quote:

Originally Posted by int_ua (Post 1320271)
I have the same behaviour in Maemo at my friends' place. I'll try to find out router model next time.

I once (maybe twice, but did not know solution at that time) experienced a very similar behaviour at a place with open WiFi.
And it took me quite some time to find out: it was caused by somehow not setting up correctly the routing.
This is what I did:
put a small script into /etc/network/if-up.d/... (script attached)
made it executable (chmod +x ,..)

From now on everything worked smoothly.
Maybe it helps. Lemme know.

BTW:
I am talking about Maemo.

int_ua 2013-02-05 00:46

Re: Arch Linux ARM on N900
 
Screenlock button quick hack:
add these lines to /etc/acpi/handler.sh :
Code:

    button/screenlock)
        echo -n mem > /sys/power/state
    ;;

It will wake up after pressing Enter.
But it doesn't switch off keyboard leds. PanzerSajt, what were the commands you used for this?

Now trying to make it with a separate /etc/acpi/events/button-screenlock

Also, if you've missed:
Code:

    button/power)
...
        reboot
...


Skry 2013-02-05 02:39

Re: Arch Linux ARM on N900
 
Clarification to the above, that does not lock the screen, it suspends.


All times are GMT. The time now is 13:56.

vBulletin® Version 3.8.8