xorg 在 X 下無法使用 ctrl+alt+F? 轉換到 console

有關於X 環境當中所遇到的問題

Moderator: Forums Team

Post Reply
User avatar
oai79
Posts: 351
Joined: Tue Jun 17, 2003 7:59 pm
Contact:

xorg 在 X 下無法使用 ctrl+alt+F? 轉換到 console

Post by oai79 »

使用 xorg 之後,現在在 X 下無法用 ctrl+alt+F? 轉回 console。有去 GO 逛過,提供的方法都不適合,想請問有沒有人遇到同樣的問題,應該怎麼解決。

謝謝。
disagreeing is much more fun than agreeing when backed up with thoughtful responses
User avatar
sinder
Posts: 64
Joined: Mon Sep 27, 2004 10:57 am
Location: 台北
Contact:

Post by sinder »

貼一下你的 xorg.conf 吧 ...^_^
User avatar
oai79
Posts: 351
Joined: Tue Jun 17, 2003 7:59 pm
Contact:

Post by oai79 »

不巧,剛好離開了桌機,明天再貼。

之前,現在在用的筆電升級 xorg 也發生同樣的事,也忘了作了些什麼,現在可以用 ctrl+alt+F? 作轉換,只是應該沒動筆電上的 xorg.conf。

所以你們都沒有遇到這樣的問題囉!!
disagreeing is much more fun than agreeing when backed up with thoughtful responses
User avatar
Hydonsingore
Posts: 193
Joined: Wed Jun 09, 2004 10:49 pm
Location: Taiwan
Contact:

Post by Hydonsingore »

我之前遇過相同問題

這是暫時的解決方式
http://bugs.gentoo.org/show_bug.cgi?id=47243#c41

我後來好像是先 emerge -C xorg-x11,
然後去把那個剩下的xkb目錄幹掉,
再重 emerge xorg-x11 就好了。(以上為印象派)
User avatar
oai79
Posts: 351
Joined: Tue Jun 17, 2003 7:59 pm
Contact:

Post by oai79 »

Hydonsingore wrote:我之前遇過相同問題

這是暫時的解決方式
http://bugs.gentoo.org/show_bug.cgi?id=47243#c41

我後來好像是先 emerge -C xorg-x11,
然後去把那個剩下的xkb目錄幹掉,
再重 emerge xorg-x11 就好了。(以上為印象派)
裡面應該都是 xkbcomp 真的有問題的情況才有解,像是 /usr/X11/bin/xkbcomp 和 /usr/lib/X11/bin/xkbcomp 不一樣。
可是我偏偏就是兩個檔 md5 都一樣才想不透。

那天心血來潮也許來試試 emerge -C,不過我的 xorg 可是重裝機器時全新安裝的。

下面貼貼 xorg.conf 相關部份,我再怎麼看,這麼陽春的 keyboard 設定,哪裡會出問題?

Code: Select all

Section "Module"
    Load        "dbe"   # Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"
    EndSubSection

    Load        "type1"
    Load        "freetype"
    Load       "glx"
    Load       "dri"
EndSection

Section "InputDevice"
    Identifier  "Keyboard1"
    Driver      "kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbModel"   "pc104"
    Option "XkbLayout"  "us"
EndSection

Section "InputDevice"
    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "IMPS/2"
    Option "Device"      "/dev/psaux"
    Option "ZAxisMapping"       "4 5"
EndSection

Section "Device"
    Identifier  "Intel 865G"
    Driver      "i810"
EndSection

Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

Section "DRI"
    Mode 0666
EndSection
感謝大家幫忙。
disagreeing is much more fun than agreeing when backed up with thoughtful responses
User avatar
sinder
Posts: 64
Joined: Mon Sep 27, 2004 10:57 am
Location: 台北
Contact:

Post by sinder »

如果把 "AutoRepeat" 註解掉呢 ??
就像下面這樣:

Code: Select all

Section "InputDevice"
    Identifier  "Keyboard1"
    Driver      "kbd"
    #Option "AutoRepeat" "500 30"
    Option "XkbModel"   "pc104"
    Option "XkbLayout"  "us"
EndSection
或是把 XkbModel 改為 microsoft 呢??
User avatar
oai79
Posts: 351
Joined: Tue Jun 17, 2003 7:59 pm
Contact:

Post by oai79 »

Nope, 都沒有產生作用。

懷疑一行 log 中的文字

Code: Select all

(EE) Couldn't load XKB keymap, falling back to pre-XKB keymap
可是初步搜尋的結果,沒看到兩個東西連在一起討論的回報。
disagreeing is much more fun than agreeing when backed up with thoughtful responses
User avatar
sinder
Posts: 64
Joined: Mon Sep 27, 2004 10:57 am
Location: 台北
Contact:

Post by sinder »

看來好像你的 xkb keymap 真的有問題喔 ....
最好還是先 unemerge 並且把 /usr/X11R6/lib/X11/xkb 這個目錄刪掉再 re-emerge 一次看看

之前我有一次也像這樣,明明是全新安裝的 xorg-x11,但是裝好之後,它的一個最重要的 cf 檔 /usr/X11R6/lib/X11/config/Imake.cf 居然是壞的,裡面都是看不懂的 binary 亂碼(是跟其它 cf 檔比較的),害我在 emerge X相關 package 時一直出現錯誤,根本沒辦法繼續下去。

後來從 error message 中才發現是這個檔案壞了,其實從別台機器 copy 一個正確的來覆蓋應該就能 work 了。但我為了慎重起見,還是把 xorg-x11 unemerge 掉,把 /usr/X11R6 目錄整個刪除重新再 emerge 一次就 OK 了。

所以我是覺得,就算是全新安裝的 package,還是有可能有問題的,提供你作參考。
User avatar
oai79
Posts: 351
Joined: Tue Jun 17, 2003 7:59 pm
Contact:

Post by oai79 »

剛剛 emerge -C xorg-x11,刪掉 xkb 目錄,remerge xorg,不幸還是沒有用。

下週再試!! :twisted: :twisted:
disagreeing is much more fun than agreeing when backed up with thoughtful responses
Post Reply