Author Topic: Switching Between X11 And Text Console?  (Read 4493 times)

new299

  • Newbie
  • *
  • Posts: 7
    • View Profile
Switching Between X11 And Text Console?
« on: May 27, 2006, 02:15:21 pm »
Hello,

I've just installed 3.5.4.1-RC4 on my c860. It's really nice, thank you for all your hard work. I'm especially pleased because my 2Gb SD card now works happily.

So now, I'm starting to get it configured just the way I like it and was wondering what key combination I should use to switch between X11 and the text consoles? And how do I configure them?

Also, has anyone out there tried installing a minimal window manager, something like ratpoison maybe?

Many thanks!

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Switching Between X11 And Text Console?
« Reply #1 on: May 27, 2006, 02:25:25 pm »
Quote
Also, has anyone out there tried installing a minimal window manager, something like ratpoison maybe?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128607\"][{POST_SNAPBACK}][/a][/div]

I thought you couldn't get anymore minimal as matchbox.....
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

new299

  • Newbie
  • *
  • Posts: 7
    • View Profile
Switching Between X11 And Text Console?
« Reply #2 on: May 27, 2006, 02:50:56 pm »
Quote
Quote
Also, has anyone out there tried installing a minimal window manager, something like ratpoison maybe?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128607\"][{POST_SNAPBACK}][/a][/div]

I thought you couldn't get anymore minimal as matchbox.....
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128610\"][{POST_SNAPBACK}][/a][/div]

ratpoison doesn't have any window decorations and doesn't require a mouse.

new299

  • Newbie
  • *
  • Posts: 7
    • View Profile
Switching Between X11 And Text Console?
« Reply #3 on: May 27, 2006, 08:33:06 pm »
Quote
I wondering what key combination I should use to switch between X11 and the text consoles? And how do I configure them?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128607\"][{POST_SNAPBACK}][/a][/div]

I've looked at /etc/keymap-2.6.map it seems to contain configuration for changing the virtual terminal using the key combination ctrl-alt-1,2 etc. to switch between consoles but this doesn't work. I also took a look at /etc/X11/Xinit.d/12keymap, which seems to be trying to load /etc/X11/shepherd.xmodmap should this exist. I've tried chvt and this lets me change between vt's successfully.

Should I file this as a bug somewhere? I could only see bugtrackers for gpe, opie and open embedded on www.openzaurus.org nothing for openzaurus.

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Switching Between X11 And Text Console?
« Reply #4 on: May 28, 2006, 07:01:52 am »
Somewhere along the path, X is prohibiting VT switch combinations(FN+left, FN+right) when it runs. That qualifies as a bug imo.
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Switching Between X11 And Text Console?
« Reply #5 on: May 28, 2006, 08:04:12 am »
Quote
Somewhere along the path, X is prohibiting VT switch combinations(FN+left, FN+right) when it runs. That qualifies as a bug imo.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128660\"][{POST_SNAPBACK}][/a][/div]

iirc we start X with -novtswitch or kdrive defaults to that, so it was intentional at some point. Regular X does the same by requiring ctrl-alt-Fx instead of alt-Fx. Try poking at the xserver-common package to change the behaviour.
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

guylhem

  • Hero Member
  • *****
  • Posts: 577
    • View Profile
Switching Between X11 And Text Console?
« Reply #6 on: May 28, 2006, 09:02:28 am »
regarding the keymap, with the experimental angstrom image they weren't that good. use the attached map (submitted)

If like I do you are a big fan of the console mode, it maps the cal/address/etc to console - just run additional gettys in etc/inittab to use them

Now I'll try to fix the xmodmap and keylaunch since shift/fn doesn't work.

Guylhem

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Switching Between X11 And Text Console?
« Reply #7 on: May 28, 2006, 11:17:57 am »
I've looked into the issue and have found that kdrive (our small xserver) ignores a keymapping of XF86_Switch_VT_* completely. And there is no commandline option to disable / enable that feature.

GPE users can hack /etc/keylaunchrc to include something like this:
Code: [Select]
key=...*1:-:~chvt 1
Please note that you'll have to set the SUID bit on chvt for that to work as a user:

Code: [Select]
chmod u+s /usr/bin/chvt.console-tools.
After the above changes you can cange to VT1 with Fn-1.
Webmaster of hentges.net & Embedded Linux Developer.

new299

  • Newbie
  • *
  • Posts: 7
    • View Profile
Switching Between X11 And Text Console?
« Reply #8 on: May 28, 2006, 02:43:08 pm »
Thanks for your help guys!

I'm using CoreDumps suggestion to work round the problem. I'm attaching the alterations I made to my system (3.5.4.1-RC4) in case anybody else would find this useful. I've basically changed the keymap to use Fn+num to change consoles, edited inittab to run getty on the other VTs (4->10) and altered keylaunchrc as suggested by CoreDump.

The only remaining issue is that I can't switch consoles from the GPE login screen, but I can live with that.

Thanks again!
« Last Edit: May 28, 2006, 02:44:41 pm by new299 »

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Switching Between X11 And Text Console?
« Reply #9 on: May 28, 2006, 03:28:44 pm »
Quote
Thanks for your help guys!

I'm using CoreDumps suggestion to work round the problem. I'm attaching the alterations I made to my system (3.5.4.1-RC4) in case anybody else would find this useful. I've basically changed the keymap to use Fn+num to change consoles, edited inittab to run getty on the other VTs (4->10) and altered keylaunchrc as suggested by CoreDump.

The only remaining issue is that I can't switch consoles from the GPE login screen, but I can live with that.

Thanks again!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128691\"][{POST_SNAPBACK}][/a][/div]

gpe-login has its own keylaunchrc:  /etc/X11/gpe-login.keylaunchrc  

Could you do me a favor and try chaning your button configs with the GPE button settings?
Does that still work with the hacked keylaunchrc?
Webmaster of hentges.net & Embedded Linux Developer.

new299

  • Newbie
  • *
  • Posts: 7
    • View Profile
Switching Between X11 And Text Console?
« Reply #10 on: May 28, 2006, 04:23:45 pm »
Quote
gpe-login has its own keylaunchrc:  /etc/X11/gpe-login.keylaunchrc 

Yay that works, perfect!

Quote
Could you do me a favor and try chaning your button configs with the GPE button settings?
Does that still work with the hacked keylaunchrc?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128693\"][{POST_SNAPBACK}][/a][/div]

sure, I charged gpe-calendar to gpe-calendartest, the result was the following in keylaunchrc:

Code: [Select]
key=...*1:-:~chvt 1
...4->9 omited...
key=...*10:-:~chvt 10
key=....F9:-:gpe-calendar
key=....F10:-:gpe-contacts
key=....F13:-:sylpheed
key=....F12:-:gpe-mini-browser
key=...*F18:-:display-brightness.sh down
key=...*F19:-:display-brightness.sh up

key=???Pressed XF86PowerDown:-:apm --suspend
key=???Pressed XF86Record:-:gpe-soundbite record --autogenerate-filename $HOME_VOLATILE
key=???Pressed XF86Calendar:-:gpe-calendartest
key=???Pressed telephone:-:gpe-contacts
key=???Pressed XF86Mail:-:
key=???Pressed XF86Start:-:matchbox-remote -desktop

Which didn't work very well, after reboot and logging in it kept relaunching gpe-login.