Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't switch from X to a virtual console
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
cj10111
n00b
n00b


Joined: 12 Apr 2005
Posts: 15

PostPosted: Mon Apr 18, 2005 2:17 am    Post subject: Can't switch from X to a virtual console Reply with quote

Hi,

For some reason I can't use fn+alt+f[n] to switch consoles while in X. It works outside of X so I'm guessing that's it's a problem with my xorg.conf file.

Here's my xorg.conf:

Code:
Section "Files"
    RgbPath   "/usr/lib/X11/rgb"

    FontPath   "/usr/share/fonts/local/"
    FontPath   "/usr/share/fonts/misc/"
    FontPath   "/usr/share/fonts/75dpi/:unscaled"
    FontPath   "/usr/share/fonts/100dpi/:unscaled"
    FontPath   "/usr/share/fonts/Type1/"
    FontPath    "/usr/share/fonts/TTF/"
    FontPath   "/usr/share/fonts/CID/"
    FontPath   "/usr/share/fonts/Speedo/"
    FontPath   "/usr/share/fonts/75dpi/"
    FontPath   "/usr/share/fonts/100dpi/"
EndSection

Section "Module"
    Load   "dbe"
    SubSection   "extmod"
   Option   "omit xfree86-dga"
    EndSubSection
    Load   "type1"
    Load   "freetype"
EndSection

Section "ServerFlags"
    Option   "blank time"   "10"   # 10 minutes
    Option   "standby time"   "20"
    Option   "suspend time"   "30"
    Option   "off time"   "60"
EndSection

Section "InputDevice"
   Identifier      "Generic Keyboard"
   Driver          "keyboard"
   Option          "CoreKeyboard"
   #Option          "XkbRules"      "xorg"
   Option          "XkbModel"      "macintosh"
   Option          "XkbLayout"     "en"
EndSection

Section "InputDevice"

   Identifier      "Configured Mouse"
   Driver          "mouse"
   Option          "CorePointer"
   Option          "Device"                "/dev/input/mice"
   Option          "Protocol"              "ImPS/2"
   Option          "Emulate3Buttons"       "true"
   Option          "ZAxisMapping"          "4 5"
EndSection

Section "Monitor"

   Identifier   "Generic Monitor"
   HorizSync       28-49
   VertRefresh     43-72
    Option          "DPMS"
EndSection

Section "Device"
   Identifier      "nVidia NV17 GeForce"
   Driver          "nv"
   #Driver         "offb"
   BusID           "PCI:0:16:0"
   VideoRam        32000
EndSection

Section "Screen"
   Identifier      "Default Screen"
   Device          "nVidia NV17 GeForce"
   Monitor         "Generic Monitor"
   DefaultDepth    24
   SubSection "Display"
      Depth           24
      Modes           "1024x768"
   EndSubSection
EndSection

Section "ServerLayout"
   Identifier      "Default Layout"
   Screen          "Default Screen"
   InputDevice     "Generic Keyboard"
   InputDevice     "Configured Mouse"
EndSection

Section "Extensions"
    Option "Composite" "Enable"
EndSection


Also, X gives this error on startup:

Code:
The XKEYBOARD keymap compiler (xkbcomp) reports:
>Error:      Can't find file "macintosh/en" for symbols include
>      Exiting
>      Abandoning symbols file "default"
Errors from xkbcomp are not fatal to X server


I'm pretty sure that it has something to do with this error but I'm not sure what to do about it.

Any ideas?

Thanks in advance. :)
Back to top
View user's profile Send private message
evader
Apprentice
Apprentice


Joined: 10 Dec 2004
Posts: 180
Location: Australia

PostPosted: Mon Apr 18, 2005 2:39 am    Post subject: Reply with quote

the left ctrl, left alt + f1/f2/f3 etc
_________________
//Take this barrel and end this struggle
Back to top
View user's profile Send private message
cj10111
n00b
n00b


Joined: 12 Apr 2005
Posts: 15

PostPosted: Mon Apr 18, 2005 3:12 am    Post subject: Reply with quote

Thanks for the reply. Unfortunately, that doesn't work either. I think I've got something misconfigured.
Back to top
View user's profile Send private message
evader
Apprentice
Apprentice


Joined: 10 Dec 2004
Posts: 180
Location: Australia

PostPosted: Mon Apr 18, 2005 3:19 am    Post subject: Reply with quote

Are you using a standard US 101 keymap?
_________________
//Take this barrel and end this struggle
Back to top
View user's profile Send private message
mil0t
n00b
n00b


Joined: 24 Jun 2003
Posts: 62

PostPosted: Mon Apr 18, 2005 8:10 am    Post subject: Reply with quote

For switching between ttys i use ctrl+alt+F1 or F2 or F3 so on.. try that.

//mil0t
_________________
emerge --pretend love | genlop --pretend
Back to top
View user's profile Send private message
cj10111
n00b
n00b


Joined: 12 Apr 2005
Posts: 15

PostPosted: Mon Apr 18, 2005 1:40 pm    Post subject: Reply with quote

Quote:
Are you using a standard US 101 keymap?


In my rc.conf file, I have the keymap set to "us". In the xorg.conf file, I have it set to "macintosh" and the language set to "en". I would do that for the rc.conf file as well but when I set it for "mac-us" the keyboard was unusable.

Quote:
For switching between ttys i use ctrl+alt+F1 or F2 or F3 so on.. try that.


Again, unfortunately ctrl+alt+f[n] doesn't work. For those who do have it working, may I see your rc.conf and xorg.conf file? I hoping the answer lies in there.

Thanks.
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Mon Apr 18, 2005 2:24 pm    Post subject: Re: Can't switch from X to a virtual console Reply with quote

cj10111 wrote:
Code:

Section "InputDevice"
   Identifier      "Generic Keyboard"
   Driver          "keyboard"
   Option          "CoreKeyboard"
   #Option          "XkbRules"      "xorg"
   Option          "XkbModel"      "macintosh"
   Option          "XkbLayout"     "en"
EndSection

I believe that your problems lay all here, especially given the error below.
cj10111 wrote:
Also, X gives this error on startup:
Code:
The XKEYBOARD keymap compiler (xkbcomp) reports:
>Error:      Can't find file "macintosh/en" for symbols include
>      Exiting
>      Abandoning symbols file "default"
Errors from xkbcomp are not fatal to X server

The macintosh keyboard layout is no longer necessary since Macs have gone mainstream with their keyboards. You may want to use instead a generic layout; for instance, the following work for me:
Code:
 Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel"      "pc101"
        Option      "XkbLayout"     "us"
EndSection

(on a laptop keyboard hence the pc101). Macintosh layout should work though, the following combination does work for me too:
Code:
Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option  "XkbRules"      "xfree86"
        Option  "XkbModel"      "macintosh"
        Option  "XkbLayout"     "us"
EndSection

You may also want to take into consideraation that the encouraged driver for keyboard is kdb instead of the older keyboard.

Over all, I believe that your troubles stem from the en keyboard layout, so try first to change that to us or something else that suits your needs.

Hope this helps,
Stefan
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
cj10111
n00b
n00b


Joined: 12 Apr 2005
Posts: 15

PostPosted: Mon Apr 18, 2005 3:01 pm    Post subject: Reply with quote

Hot damn!!! That did it! Thanks bruda. :)
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Tue Apr 19, 2005 12:01 am    Post subject: Reply with quote

You are welcome. Just out of curiosity, did you change `keyboard' to `kbd' or just the value of XkbLayout?
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
cj10111
n00b
n00b


Joined: 12 Apr 2005
Posts: 15

PostPosted: Tue Apr 19, 2005 12:20 am    Post subject: Reply with quote

I switched it to kdb. It was changing the layout that fixed it, though.

Here's the file:

Code:
Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        #Option         "CoreKeyboard"
        #Option         "XkbRules"      "xfree86"
        Option          "XkbModel"      "macintosh"
        Option          "XkbLayout"     "us"
EndSection


Now I can use a separate console for MOL. You wouldn't happen to know where I can find good help on getting networking going for that, would you?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Apr 19, 2005 1:32 am    Post subject: Reply with quote

Here is as good of a place as any... what's the problem?

In a nutshell:

Make sure your kernel has tun support: CONFIG_TUN=y
Emerge mol with tun support.
Make sure that dhcp starts correctly (you may need to touch the leases file to get it running)
Marvel at the wonder that is MOL.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
cj10111
n00b
n00b


Joined: 12 Apr 2005
Posts: 15

PostPosted: Tue Apr 19, 2005 4:33 pm    Post subject: Reply with quote

CONFIG_TUN is set to "y". When you say Emerge mol with tune support, do you mean with that compiled in, or is that a use flag? Also, how do I make sure DHCP starts correctly?

With what I have now, it sees the new network device, but doesn't get a valid IP with DHCP. What is the leases file, and where should it be?

Thanks again.
Back to top
View user's profile Send private message
cj10111
n00b
n00b


Joined: 12 Apr 2005
Posts: 15

PostPosted: Sun Apr 24, 2005 3:55 am    Post subject: Reply with quote

I got it working. I just had to touch the leases file.

Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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