顯示具有 nvidia 標籤的文章。 顯示所有文章
顯示具有 nvidia 標籤的文章。 顯示所有文章

2012年11月21日 星期三

google earth 7

中文版請看這裡
I'm running openSUSE 12.2 x86_64 system with nvidia proprietary driver
$  uname -r
3.4.11-2.16-desktop
$ rpm -qa | grep nvidia
nvidia-gfxG02-kmp-desktop-304.43_k3.4.6_2.10-19.1.x86_64
nvidia-computeG02-304.43-20.1.x86_64
x11-video-nvidiaG02-304.43-20.1.x86_64

Download Google Earth from http://www.google.com/intl/zh-TW/earth/index.html
Use zypper to install it
# zypper in google-earth-stable_current_x86_64.rpm 
正在載入套件庫資料...
讀取已安裝的套件...
正在解決套件相依性...

將會安裝下列新的套件:
  google-earth-stable 

1  新套件將被安裝.
全部下載大小: 39.3 MiB。 完成操作後,將增加 126.0 MiB 的使用。
要繼續嗎? [y/n/?] (y): y
正在取出 套件 google-earth-stable-7.0.1.8244-0.x86_64
                                   (1/1),  39.3 MiB (已解開 126.0 MiB)
正在取出 套件 google-earth-stable-7.0.1.8244-0.x86_64
                                   (1/1),  39.3 MiB (已解開 126.0 MiB)
正在安裝: google-earth-stable-7.0.1.8244-0 ....................[完成]
其他 rpm 輸出:
warning: commands will be executed using /bin/sh
job 3 at 2012-11-21 00:23
Can't open /var/run/atd.pid to signal atd. No atd running?


Run google-earth in konsole (or other terminal)
$ google-earth
Google Earth has caught signal 11.



We apologize for the inconvenience, but Google Earth has crashed.
 This is a bug in the program, and should never happen under normal
 circumstances. A bug report and debugging data have been written
 to this text file:

    /home/ray122/.googleearth/crashlogs/crashlog-50abae63.txt

Please include this file if you submit a bug report to Google.


See debugging deta
$ cat /home/ray122/.googleearth/crashlogs/crashlog-50abae63.txt
Major Version 7
Minor Version 0
Build Number 0001
Build Date Oct 29 2012
Build Time 19:13:39
OS Type 3
OS Major Version 3
OS Minor Version 4
OS Build Version 11
OS Patch Version 16
Crash Signal 11
Crash Time 1353428579
Up Time 0.073919

Stacktrace from glibc:
./libgoogleearth_free.so(+0x1e9cfb)[0xf7572cfb]
./libgoogleearth_free.so(+0x1e9f43)[0xf7572f43]
linux-gate.so.1(__kernel_sigreturn+0x0)[0xf771d400]


Debugging
$ cd /opt/google/earth/free/


$ export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH

$ gdb ./googleearth-bin
GNU gdb (GDB) SUSE (7.4.50.20120603-2.1.2)
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
For bug reporting instructions, please see:
...
Reading symbols from /opt/google/earth/free/googleearth-bin...(no debugging symbols found)...done.
(gdb) r
Starting program: /opt/google/earth/free/googleearth-bin 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0xf42fd0c8 in ?? () from /usr/lib/libexpat.so.1
Missing separate debuginfos, use: zypper install google-earth-stable-debuginfo-7.0.1.8244-0.x86_64
(gdb) bt
#0  0xf42fd0c8 in ?? () from /usr/lib/libexpat.so.1
#1  0xf42fd203 in ?? () from /usr/lib/libexpat.so.1
#2  0xf42fd23c in ?? () from /usr/lib/libexpat.so.1
#3  0xf42ffb69 in ?? () from /usr/lib/libexpat.so.1
#4  0xf4300c11 in ?? () from /usr/lib/libexpat.so.1
#5  0xf4301ab2 in ?? () from /usr/lib/libexpat.so.1
#6  0xf4305e0e in XML_ParseBuffer () from /usr/lib/libexpat.so.1
#7  0xf6fea471 in FcConfigParseAndLoad ()
   from /usr/lib/libfontconfig.so.1
#8  0xf6fea761 in FcConfigParseAndLoad ()
   from /usr/lib/libfontconfig.so.1
#9  0xf6feaa17 in ?? () from /usr/lib/libfontconfig.so.1
#10 0xf4300815 in ?? () from /usr/lib/libexpat.so.1
#11 0xf4301ab2 in ?? () from /usr/lib/libexpat.so.1
#12 0xf43036b0 in ?? () from /usr/lib/libexpat.so.1
#13 0xf4303e52 in ?? () from /usr/lib/libexpat.so.1
#14 0xf4305e0e in XML_ParseBuffer () from /usr/lib/libexpat.so.1
#15 0xf6fea471 in FcConfigParseAndLoad ()
   from /usr/lib/libfontconfig.so.1
#16 0xf6fdee46 in FcInitLoadConfig ()
   from /usr/lib/libfontconfig.so.1
#17 0xf6fdef69 in FcInitLoadConfigAndFonts ()
   from /usr/lib/libfontconfig.so.1
#18 0xf6fdf1ed in FcInit () from /usr/lib/libfontconfig.so.1
#19 0xf739202f in qt_init(QApplicationPrivate*, int, _XDisplay*, unsigned long, unsigned long) () from ./libQtGui.so.4
#20 0xf730cb2a in QApplicationPrivate::construct(_XDisplay*, unsigned long, unsigned long) () from ./libQtGui.so.4
#21 0xf730da53 in QApplication::QApplication(int&, char**, int) ()
   from ./libQtGui.so.4
#22 0xf7ec1e79 in earth::client::Application::Application(int&, char**) () from ./libgoogleearth_free.so
---Type  to continue, or q  to quit---
#23 0xf7e2e7ff in ?? () from ./libgoogleearth_free.so
#24 0xf7e2ebb9 in earthmain () from ./libgoogleearth_free.so
#25 0x0804877b in ?? ()
#26 0xf50ff3d5 in __libc_start_main () from /lib/libc.so.6
#27 0x080486c1 in ?? ()
(gdb)

We need some debuginfo packages
make sure you have enabled debug repos
#  zypper in libexpat1-debuginfo-32bit fontconfig-debuginfo-32bit

yes, you need 32-bit packages even you are running a 64-bit system

run gdb again
$ gdb ./googleearth-bin
GNU gdb (GDB) SUSE (7.4.50.20120603-2.1.2)
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
For bug reporting instructions, please see:
...
Reading symbols from /opt/google/earth/free/googleearth-bin...(no debugging symbols found)...done.
(gdb) r
Starting program: /opt/google/earth/free/googleearth-bin 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
poolGrow (pool=pool@entry=0x808e7b0) at lib/xmlparse.c:6215
6215    lib/xmlparse.c: 沒有此一檔案或目錄.
Missing separate debuginfos, use: zypper install google-earth-stable-debuginfo-7.0.1.8244-0.x86_64
(gdb) bt
#0  poolGrow (pool=pool@entry=0x808e7b0) at lib/xmlparse.c:6215
#1  0xf42fd203 in poolAppend (pool=pool@entry=0x808e7b0, enc=enc@entry=0xf4f46c00, 
    ptr=ptr@entry=0x8093383 "pixelsize\" compare=\"less_eq\">\n\t\t\t\t0\n\t\t


\n", ' ' , "\n", ' ' , "false\n", ' ' , "\n", ' ' , "    end=end@entry=0x809338c "\" compare=\"less_eq\">\n\t\t\t\t0\n\t\t\n", ' ' , "\n", ' ' , "false\n", ' ' , "\n", ' ' , "\n"...) at lib/xmlparse.c:6148
#2  0xf42fd23c in poolStoreString (pool=pool@entry=0x808e7b0, enc=enc@entry=0xf4f46c00, 
    ptr=0x8093383 "pixelsize\" compare=\"less_eq\">\n\t\t\t\t0\n\t\t\n", ' ' , "\n", ' ' , "false\n", ' ' , "\n", ' ' , "    end=0x809338c "\" compare=\"less_eq\">\n\t\t\t\t0\n\t\t\n", ' ' , "\n", ' ' , "false\n", ' ' , "\n", ' ' , "\n"...) at lib/xmlparse.c:6201
#3  0xf42ffb69 in storeAtts (parser=parser@entry=0x808e610, enc=enc@entry=0xf4f46c00, 
    attStr=0x8093377 "\n\t\t\t\t0\n\t\t\n", ' ' , "\n", ' ' , "false\n", ' ' , "\n", ' ' , "#4  0xf4300c11 in doContent (parser=parser@entry=0x808e610, startTagLevel=startTagLevel@entry=0, enc=0xf4f46c00, 
    s=0x8093377 "\n\t\t\t\t0\n\t\t\n", ' ' , "\n", ' ' , "false\n", ' ' , "\n", ' ' , "    s@entry=0x80932b8 ' ' , "Lucida Sans Typewriter\n", ' ' , "Lucida Sans\n", ' ' , "Lucida Bright\n", ' ' , "\n\t\t#5  0xf4301ab2 in contentProcessor (parser=0x808e610, 
    start=0x80932b8 ' ' , "Lucida Sans Typewriter\n", ' ' , "Lucida Sans\n", ' ' , "Lucida Bright\n", ' ' , "\n\t\t#6  0xf4305e0e in XML_ParseBuffer (parser=parser@entry=0x808e610, len=len@entry=2812, isFinal=isFinal@entry=0) at lib/xmlparse.c:1651
#7  0xf6fea471 in IA__FcConfigParseAndLoad (config=config@entry=0x8080b50, name=0x808e3b0 "/etc/fonts/conf.d/11-suse-hinting.conf", complain=complain@entry=0) at fcxml.c:2782
#8  0xf6fea761 in FcConfigParseAndLoadDir (complain=0, dir=0x8084f30 "/etc/fonts/conf.d", name=0xffffb99c "conf.d", config=0x8080b50) at fcxml.c:2668
#9  IA__FcConfigParseAndLoad (config=0x8080b50, name=name@entry=0xffffb99c "conf.d", complain=0) at fcxml.c:2718
#10 0xf6feaa17 in FcParseInclude (parse=0xffffb8c0) at fcxml.c:1849
#11 FcEndElement (userData=0xffffb8c0, name=0x80807a8 "include") at fcxml.c:2387
#12 0xf4300815 in doContent (parser=parser@entry=0x8080f20, startTagLevel=startTagLevel@entry=0, enc=0xf4f46c00, 
    s=0x808218e "\n\n\n\n\t/var/cache/fontconfig\n\t~/.fontconfig\n\n\t\n\n\n\n\n\n\n<!--\n\tDO NOT EDIT THIS FILE.\n\tIT WILL BE REPLACED WHEN "..., end=0x8082f00 "", nextPtr=0x8080f38) at lib/xmlparse.c:3739
#16 0xf4305e0e in XML_ParseBuffer (parser=parser@entry=0x8080f20, len=len@entry=5320, isFinal=isFinal@entry=0) at lib/xmlparse.c:1651
#17 0xf6fea471 in IA__FcConfigParseAndLoad (config=config@entry=0x8080b50, name=name@entry=0x0, complain=complain@entry=1) at fcxml.c:2782
#18 0xf6fdee46 in IA__FcInitLoadConfig () at fcinit.c:67
#19 0xf6fdef69 in IA__FcInitLoadConfigAndFonts () at fcinit.c:101
#20 0xf6fdf1ed in IA__FcInit () at fcinit.c:124
#21 0xf739202f in qt_init(QApplicationPrivate*, int, _XDisplay*, unsigned long, unsigned long) () from ./libQtGui.so.4
#22 0xf730cb2a in QApplicationPrivate::construct(_XDisplay*, unsigned long, unsigned long) () from ./libQtGui.so.4
#23 0xf730da53 in QApplication::QApplication(int&, char**, int) () from ./libQtGui.so.4
#24 0xf7ec1e79 in earth::client::Application::Application(int&, char**) () from ./libgoogleearth_free.so
#25 0xf7e2e7ff in ?? () from ./libgoogleearth_free.so
#26 0xf7e2ebb9 in earthmain () from ./libgoogleearth_free.so
---Type  to continue, or q  to quit---
#27 0x0804877b in ?? ()
#28 0xf50ff3d5 in __libc_start_main () from /lib/libc.so.6
#29 0x080486c1 in ?? ()
(gdb)

You can see the some fonconfig settings make the Segmentation fault
in #7 ...   "/etc/fonts/conf.d/11-suse-hinting.conf"
Remove the file /etc/fonts/conf.d/11-suse-hinting.conf
# rm  /etc/fonts/conf.d/11-suse-hinting.conf

run gdb again you can see /etc/fonts/conf.d/65-fonts-persian.conf will need to be deleted
# rm  /etc/fonts/conf.d/65-fonts-persian.conf

keep debugging till google-earth works

Some screenshots:
Startup:
 
 Panoramio photo:

 Street view:

Flight simulator:

Navigating sky:

3D building:


Fonts looks good, libQT* need no more replacement.
Non-latin characters can show-up properly.

Also some  defects:
1. some pictures can't be seen

2. almost all links in pop-up windows can't click to link to target
You have to right click the link, choose "open in new window" to link to the target

3. flash is not working
4. crash sometimes...

2012年9月27日 星期四

安裝 bumblebee 在 Acer aspire 4752G

幫老婆的筆電升級 12.2
當然參考前文仍是要安裝 bumblebee
來關閉 nvidia 顯示卡(需要時再用指令來使用,無法動態切換喔!)
# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation Device 0dea (rev ff)

您可以看見有兩張顯示卡:
Intel 的效能較差,但省電
Nvidia 效能較好,較耗電
麵沒有大碗好吃便宜又衛生的啦!

如果您的筆電開機有問題
先在 bios 中設定使用內建顯示卡開機
我是從 home:swyear:bumblebee 來安裝 bumblebee 相關套件
# zypper ar obs://home:swyear:bumblebee/openSUSE_12.2 bumblebee

加入套件庫
您也可以在 software.opensuse.org 搜尋其他套件庫
接著用圖形安裝
 
要安裝 bumblebee, VirtualGL, libbsd0, libturbojpeg, bbswitch-kmp-[Flavor]
其中 bbswitch 套件需要自行選取所用的核心口味
用下列指令看一下:
# uname -r
3.4.6-2.10-desktop

所以選擇 bbswitch-kmp-desktop

加入 Nvidia 套件庫
由 YaST--軟體套件庫--新增--社群套件庫--nVidia Graphics Drivers
仍依照您的核心口味選擇

安裝完成之後
由 YaST--系統--/etc/sysconfig 編輯器--System--Kernel--
將 NO_KMS_IN_INITRD 設為 no

接下來是一些檔案的移動
# mkdir -p /usr/lib64/nvidia/xorg/modules/updates/extensions
# mv /usr/X11R6/lib64/libGL* /usr/lib64/nvidia/
# mv /usr/lib64/xorg/modules/updates/extensions/libglx* /usr/lib64/nvidia/xorg/modules/updates/extensions/
# mkdir -p /usr/lib/nvidia
# mv /usr/X11R6/lib/libGL* /usr/lib/nvidia
檢查一下 /etc/bumblebee/bumblebee.conf
確認
Driver=nvidia
最後將使用者加入 bumblebee 的群組

如此就大功告成了
重新開機,進入 Bios
調整顯示卡為可切換模式
進入桌面後用終端機執行測試
$ glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile 
    GL_NV_conditional_render, GL_ARB_ES2_compatibility,
$ optirun glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: GeForce 610M/PCIe/SSE2
    GL_NV_conditional_render, GL_NV_copy_depth_to_color, GL_NV_copy_image, 
    GL_NV_parameter_buffer_object2, GL_NV_path_rendering, 
    GL_NVX_conditional_render, GL_NVX_gpu_memory_info, 
    GL_OES_depth_texture, GL_OES_element_index_uint, GL_OES_fbo_render_mipmap,
您也可以用 glxgears 來跑一下齒輪(注意:不和效能成正比)

2012年9月9日 星期日

openSUSE 12.2 開機與登入(KDM)畫面

openSUSE 12.2 使用了 GRUB2 和 plymouth 動畫



1. 因為再這台電腦上使用 nouveau 的驅動時,plymouth 的動畫會亂掉
所以只好安裝 Nvidia 的專利驅動程式
只要再社群套件庫中新增 Nvidia 驅動程式套件庫就可輕鬆安裝 nvidia 驅動
因為 nvidia 不支援 modeset, 所以在切換時會畫面黑掉
如果用 nouveau 應該會比較順


2. 如果你的變色龍看起來很大隻
應該是 GRUB2 選擇了較低的解析度畫面
請察看您的螢幕所支援的解析度
 
然後用 YaST - 系統 - 開機載入器 - 開機載入器選項 - 選擇一個可支援的 VGA 模式


3. 12.2 的 KDM 登入畫面被抱怨了
(這大概是我用 SuSE/openSUSE 以來第一次有人抱怨美工問題)
請到 http://kde-look.org/index.php?xcontentmode=40x41 自己找一個來換吧
openSUSE 的 KDE 系統設定 - 登入畫面(KDM) 功能被閹割了
要自行手動設定
在kde-look 上選定了佈景主題後
您仍可以用 系統設定 - 登入畫面(KDM) 安裝
但無法套用
必須以 root 權限修改 /etc/sysconfig/displaymanager
將 DISPLAYMANAGER_KDM_THEME="openSUSE"
改成別的字串
這字串就是你安裝的佈景主題所在的目錄
例如佈景裝在 /usr/share/kde4/apps/kdm/themes/KStarboard 目錄中
您就改成 DISPLAYMANAGER_KDM_THEME="KStarboard"

4. 您也可以針對主題稍做修改,讓他看起來更有 geeko 的感覺



2012年1月2日 星期一

Acer aspire 4752G 安裝 openSUSE 12.1

老婆新買了筆電:
acer ASPIRE 4752G
CPU: Intel Core i5-2450M 2.5GHz
顯示卡:NVIDIA GeForce 610M with NVIDIA OPTIMUS TECHNOLOGY

openSUSE 12.1 GNOME Live CD 測試:
開機畫面正常,但選擇 Live GNOME 進入後,在 splash 畫面錯亂,
最後螢幕變黑,無法開機
強迫關機,重新開機時按 F2 進入 BIOS 設定畫面
將 Graphic Mode 由 Switchable 改成 Integrated,儲存,離開
再次測試 Live GNOME,這次就可以進入 GNOME 3,
而且是標準模式,有桌面特效
表示可以使用 openSUSE 系統
結束測試

接著要使用 openSUSE 12.1 64-bit DVD 來安裝
光碟放進去卻不會出現 GRUB 的開機畫面(就是選擇安裝的畫面)
而是黑色終端機螢幕,左上角顯示
ELILO boot:....
Loading kernel linux...

跑一陣子之後會直接進入安裝畫面
照著步驟做下去,到選擇安裝位置時,最後決定取消
因為這種方法會要求您將所有的分割區刪除
但我想留著 windows 做多重開機
本以為是需要先將磁碟空間空出,
但用 GParted 重新化分割區後再重做
仍無法僅用空白分割區安裝
系統說:
Your system states that is requires all EFI boot setup,
Since the selected disk does not contain a GPT disk lable
we creat a GPT lable on this disk.
You need to mark all partitions on this disk for removal.

差點就要放棄了,打算改用 Live CD 安裝
後來發現在 ELILO boot:... 出現時按 ESC
就會出現 GRUB 的安裝畫面
而且可以順利將作業系統安裝到所規劃好的磁區
雖然在安裝前摘要有紅字,說 GRUB 所安裝的位置可能無法正常開機
但我還是心一狠就依照預設位置裝了
結果裝完就...
正常開機了

把所有的更新裝一裝,該裝的套件裝一裝,該調的調一調
依照我以前的理解,再裝上 nvidia 的驅動程式應該就大功告成了
興高采烈的重開機,將 BIOS 中的 Graphic Mode 改回 Switchable
結果...
失敗...畫面整個亂掉,無法開啟 X

只好改回用 Integrated 的顯示卡
還要用 safe mode 才進得了 X
先移除 nvidia 驅動程式,重回原點開始找資料

幸好有 Geeko 的加持和 Google 的幫助
最後還是成功了

Geeko 與你同在!

對於 nvidia optimus 的顯示卡,您需要 Bumblebee,
(當然,如果您要放棄使用 nvidia 顯示卡,只用 intel 的顯示卡,在 BIOS 中調就都可以用了)
相關頁面:
https://github.com/Bumblebee-Project/Bumblebee
http://www.martin-juhl.dk/2011/08/ironhide-reporting-for-duty/
http://www.martin-juhl.dk/2011/08/reassemble-of-the-bee/
https://github.com/MrMEEE/bumblebee
雖然還是一個發展中的計劃
至少給了 nvidia 顯示卡的 Linux 使用者一絲的希望

在 software.opensuse.org 搜尋 bumblebee
(請在搜尋選項中核取「包含使用者的 home project」)
我們要使用新版的 bumblebee
# zypper ar home:Bumblebee-Project:Bumblebee-develop/openSUSE_12.1 bumblebee

您需要 bumblebee VirtualGL
若使用 64 位元系統,可能還需要 VirtualGL-32bit
# zypper in bumblebee VirtualGL


您可能需要手動將您的使用者加入 bumblebee 群組
您可以輕易用 YaST 來完成這件事

預設使用 nouveau 驅動程式
但我沒辦法成功使用 nouveau 驅動程式
(猜測是新的顯示卡還沒辦法被 nouveau 所支援)
所以我還是需要安裝 nvidia 的專利驅動程式

根據參考資料
安裝了 nvidia 專利驅動程式 (nvidia-gfxG02-kmp-desktop nvidia-computeG02 x11-video-nvidiaG02) 之後
將 nvidia 所提供的部份驅動程式移到新的目錄
以避免和 Mesa 以及 xorg-x11-server 所提供的檔案衝突
注意:
所以當您發現 nvidia 顯示卡驅動程式有更新時
以下步驟必須重新再跑一次
我是使用 64 位元作業系統,就直接以電腦上的檔案位置來舉例
若您是使用 32 位元系統,請注意 lib64 要改成 lib,後面就不再說明了
# mkdir -p /usr/lib64/nvidia/xorg/modules/updates/extensions
# mv /usr/X11R6/lib64/libGL* /usr/lib64/nvidia/
# mv /usr/lib64/xorg/modules/updates/extensions/libglx* /usr/lib64/nvidia/xorg/modules/updates/extensions/
# mkdir -p /usr/lib/nvidia
# mv /usr/X11R6/lib/libGL* /usr/lib/nvidia


最後編輯 /etc/bumblebee/bumblebee.conf 修改
DRIVER=nvidia

您可能還需要修改 /etc/sysconfig/kernel
NO_KMS_IN_INITRD="no"

重新開機,看看是否大功告成

精彩放送:在嘗試失敗的過程中拍到的有趣照片

可能是 intel 顯示卡使用了 nvidia 驅動程式所提供的 libglx.so 來運行桌面特效所造成的結果
(按 Alt-Shift+F12 來終止這種特效)
我本來想說可以用就用看看(還蠻炫的)
可惜都不能用

您可以用 glxinfo 來看看是否運作成功
如果沒有錯誤訊息表示 Intel 顯示卡 OK
$ glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGI_swap_control,
GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGIX_visual_select_group, GLX_INTEL_swap_event
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_framebuffer_sRGB,
GLX_MESA_copy_sub_buffer, GLX_MESA_multithread_makecurrent,
GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control,
GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,
GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap,
GLX_INTEL_swap_event
GLX extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
GLX_MESA_multithread_makecurrent, GLX_MESA_swap_control,
GLX_OML_swap_method, GLX_OML_sync_control, GLX_SGI_make_current_read,
GLX_SGI_swap_control, GLX_SGI_video_sync, GLX_SGIS_multisample,
GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group,
GLX_EXT_texture_from_pixmap, GLX_INTEL_swap_event
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile
OpenGL version string: 2.1 Mesa 7.11
OpenGL extensions:
GL_ARB_multisample, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
GL_EXT_blend_logic_op, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
GL_EXT_copy_texture, GL_EXT_polygon_offset, GL_EXT_subtexture,
GL_EXT_texture_object, GL_EXT_vertex_array, GL_EXT_compiled_vertex_array,
GL_EXT_texture, GL_EXT_texture3D, GL_IBM_rasterpos_clip,
GL_ARB_point_parameters, GL_EXT_draw_range_elements, GL_EXT_packed_pixels,
GL_EXT_point_parameters, GL_EXT_rescale_normal,
GL_EXT_separate_specular_color, GL_EXT_texture_edge_clamp,
GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp,
GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_ARB_framebuffer_sRGB,
GL_ARB_multitexture, GL_EXT_framebuffer_sRGB,
GL_IBM_multimode_draw_arrays, GL_IBM_texture_mirrored_repeat,
GL_3DFX_texture_compression_FXT1, GL_ARB_texture_cube_map,
GL_ARB_texture_env_add, GL_ARB_transpose_matrix,
GL_EXT_blend_func_separate, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays,
GL_EXT_secondary_color, GL_EXT_texture_env_add,
GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod_bias,
GL_INGR_blend_func_separate, GL_NV_blend_square, GL_NV_light_max_exponent,
GL_NV_texgen_reflection, GL_NV_texture_env_combine4,
GL_SUN_multi_draw_arrays, GL_ARB_texture_border_clamp,
GL_ARB_texture_compression, GL_EXT_framebuffer_object,
GL_EXT_texture_env_dot3, GL_MESA_window_pos, GL_NV_packed_depth_stencil,
GL_NV_texture_rectangle, GL_NV_vertex_program, GL_ARB_depth_texture,
GL_ARB_occlusion_query, GL_ARB_shadow, GL_ARB_texture_env_combine,
GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3,
GL_ARB_texture_mirrored_repeat, GL_ARB_window_pos, GL_ATI_envmap_bumpmap,
GL_EXT_stencil_two_side, GL_EXT_texture_cube_map, GL_NV_depth_clamp,
GL_NV_vertex_program1_1, GL_APPLE_client_storage, GL_APPLE_packed_pixels,
GL_APPLE_vertex_array_object, GL_ARB_draw_buffers,
GL_ARB_fragment_program, GL_ARB_fragment_shader, GL_ARB_shader_objects,
GL_ARB_vertex_program, GL_ARB_vertex_shader, GL_ATI_draw_buffers,
GL_ATI_texture_env_combine3, GL_EXT_shadow_funcs, GL_EXT_stencil_wrap,
GL_MESA_pack_invert, GL_MESA_ycbcr_texture, GL_ARB_depth_clamp,
GL_ARB_fragment_program_shadow, GL_ARB_half_float_pixel,
GL_ARB_point_sprite, GL_ARB_shading_language_100, GL_ARB_sync,
GL_ARB_texture_non_power_of_two, GL_ARB_vertex_buffer_object,
GL_ATI_blend_equation_separate, GL_EXT_blend_equation_separate,
GL_OES_read_format, GL_ARB_color_buffer_float, GL_ARB_pixel_buffer_object,
GL_ARB_texture_compression_rgtc, GL_ARB_texture_rectangle,
GL_EXT_pixel_buffer_object, GL_EXT_texture_compression_rgtc,
GL_EXT_texture_rectangle, GL_EXT_texture_sRGB, GL_ARB_framebuffer_object,
GL_EXT_framebuffer_blit, GL_EXT_framebuffer_multisample,
GL_EXT_packed_depth_stencil, GL_APPLE_object_purgeable,
GL_ARB_vertex_array_object, GL_ATI_separate_stencil, GL_EXT_draw_buffers2,
GL_EXT_gpu_program_parameters, GL_EXT_texture_env_combine,
GL_EXT_texture_sRGB_decode, GL_EXT_timer_query, GL_OES_EGL_image,
GL_ARB_copy_buffer, GL_ARB_half_float_vertex, GL_ARB_map_buffer_range,
GL_ARB_texture_rg, GL_ARB_texture_swizzle, GL_ARB_vertex_array_bgra,
GL_EXT_separate_shader_objects, GL_EXT_texture_swizzle,
GL_EXT_vertex_array_bgra, GL_NV_conditional_render,
GL_ARB_ES2_compatibility, GL_ARB_draw_elements_base_vertex,
GL_ARB_explicit_attrib_location, GL_ARB_fragment_coord_conventions,
GL_ARB_provoking_vertex, GL_ARB_sampler_objects, GL_ARB_seamless_cube_map,
GL_ARB_shader_texture_lod, GL_EXT_provoking_vertex, GL_EXT_texture_snorm,
GL_MESA_texture_signed_rgba, GL_ARB_robustness
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x21 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x22 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x8e 24 tc 0 24 0 r . . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0x8f 24 tc 0 24 0 r y . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0x90 24 tc 0 24 0 r y . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0x91 24 tc 0 24 0 r . . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0x92 24 tc 0 24 0 r y . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0x93 24 tc 0 24 0 r y . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0x94 24 tc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x95 24 tc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x96 24 tc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x97 24 tc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x98 24 tc 0 24 0 r y . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0x99 24 tc 0 24 0 r y . 8 8 8 0 0 24 8 16 16 16 0 0 0 Slow
0x9a 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x9b 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x9c 24 dc 0 24 0 r . . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0x9d 24 dc 0 24 0 r y . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0x9e 24 dc 0 24 0 r y . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0x9f 24 dc 0 24 0 r . . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0xa0 24 dc 0 24 0 r y . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0xa1 24 dc 0 24 0 r y . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0xa2 24 dc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0xa3 24 dc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0xa4 24 dc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0xa5 24 dc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0xa6 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0xa7 24 dc 0 24 0 r y . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0xa8 24 dc 0 24 0 r y . 8 8 8 0 0 24 8 16 16 16 0 0 0 Slow
0xa9 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0xaa 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x5d 32 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None

接著用 optirun glxinfo 看 nvidia 顯示卡是否成功啟動
$ optirun glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: VirtualGL
server glx version string: 1.4
server glx extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_SGI_make_current_read, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SUN_get_transparent_index, GLX_ARB_create_context
client glx vendor string: VirtualGL
client glx version string: 1.4
client glx extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_SGI_make_current_read, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SUN_get_transparent_index, GLX_ARB_create_context
GLX extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_SGI_make_current_read, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SUN_get_transparent_index, GLX_ARB_create_context
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 610M/PCI/SSE2
OpenGL version string: 4.2.0 NVIDIA 290.10
OpenGL extensions:
GL_ARB_base_instance, GL_ARB_blend_func_extended,
GL_ARB_color_buffer_float, GL_ARB_compatibility,
GL_ARB_compressed_texture_pixel_storage, GL_ARB_conservative_depth,
GL_ARB_copy_buffer, GL_ARB_depth_buffer_float, GL_ARB_depth_clamp,
GL_ARB_depth_texture, GL_ARB_draw_buffers, GL_ARB_draw_buffers_blend,
GL_ARB_draw_indirect, GL_ARB_draw_elements_base_vertex,
GL_ARB_draw_instanced, GL_ARB_ES2_compatibility,
GL_ARB_explicit_attrib_location, GL_ARB_fragment_coord_conventions,
GL_ARB_fragment_program, GL_ARB_fragment_program_shadow,
GL_ARB_fragment_shader, GL_ARB_framebuffer_object,
GL_ARB_framebuffer_sRGB, GL_ARB_geometry_shader4,
GL_ARB_get_program_binary, GL_ARB_gpu_shader5, GL_ARB_gpu_shader_fp64,
GL_ARB_half_float_pixel, GL_ARB_half_float_vertex, GL_ARB_imaging,
GL_ARB_instanced_arrays, GL_ARB_internalformat_query,
GL_ARB_map_buffer_alignment, GL_ARB_map_buffer_range, GL_ARB_multisample,
GL_ARB_multitexture, GL_ARB_occlusion_query, GL_ARB_occlusion_query2,
GL_ARB_pixel_buffer_object, GL_ARB_point_parameters, GL_ARB_point_sprite,
GL_ARB_provoking_vertex, GL_ARB_robustness, GL_ARB_sample_shading,
GL_ARB_sampler_objects, GL_ARB_seamless_cube_map,
GL_ARB_separate_shader_objects, GL_ARB_shader_atomic_counters,
GL_ARB_shader_bit_encoding, GL_ARB_shader_image_load_store,
GL_ARB_shader_objects, GL_ARB_shader_precision, GL_ARB_shader_subroutine,
GL_ARB_shading_language_100, GL_ARB_shading_language_420pack,
GL_ARB_shading_language_include, GL_ARB_shading_language_packing,
GL_ARB_shadow, GL_ARB_sync, GL_ARB_tessellation_shader,
GL_ARB_texture_border_clamp, GL_ARB_texture_buffer_object,
GL_ARB_texture_buffer_object_rgb32, GL_ARB_texture_compression,
GL_ARB_texture_compression_bptc, GL_ARB_texture_compression_rgtc,
GL_ARB_texture_cube_map, GL_ARB_texture_cube_map_array,
GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3,
GL_ARB_texture_float, GL_ARB_texture_gather,
GL_ARB_texture_mirrored_repeat, GL_ARB_texture_multisample,
GL_ARB_texture_non_power_of_two, GL_ARB_texture_query_lod,
GL_ARB_texture_rectangle, GL_ARB_texture_rg, GL_ARB_texture_rgb10_a2ui,
GL_ARB_texture_storage, GL_ARB_texture_swizzle, GL_ARB_timer_query,
GL_ARB_transform_feedback2, GL_ARB_transform_feedback3,
GL_ARB_transform_feedback_instanced, GL_ARB_transpose_matrix,
GL_ARB_uniform_buffer_object, GL_ARB_vertex_array_bgra,
GL_ARB_vertex_array_object, GL_ARB_vertex_attrib_64bit,
GL_ARB_vertex_buffer_object, GL_ARB_vertex_program, GL_ARB_vertex_shader,
GL_ARB_vertex_type_2_10_10_10_rev, GL_ARB_viewport_array,
GL_ARB_window_pos, GL_ATI_draw_buffers, GL_ATI_texture_float,
GL_ATI_texture_mirror_once, GL_S3_s3tc, GL_EXT_texture_env_add,
GL_EXT_abgr, GL_EXT_bgra, GL_EXT_bindable_uniform, GL_EXT_blend_color,
GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_compiled_vertex_array,
GL_EXT_Cg_shader, GL_EXT_depth_bounds_test, GL_EXT_direct_state_access,
GL_EXT_draw_buffers2, GL_EXT_draw_instanced, GL_EXT_draw_range_elements,
GL_EXT_fog_coord, GL_EXT_framebuffer_blit, GL_EXT_framebuffer_multisample,
GL_EXTX_framebuffer_mixed_formats, GL_EXT_framebuffer_object,
GL_EXT_framebuffer_sRGB, GL_EXT_geometry_shader4,
GL_EXT_gpu_program_parameters, GL_EXT_gpu_shader4,
GL_EXT_multi_draw_arrays, GL_EXT_packed_depth_stencil,
GL_EXT_packed_float, GL_EXT_packed_pixels, GL_EXT_pixel_buffer_object,
GL_EXT_point_parameters, GL_EXT_provoking_vertex, GL_EXT_rescale_normal,
GL_EXT_secondary_color, GL_EXT_separate_shader_objects,
GL_EXT_separate_specular_color, GL_EXT_shader_image_load_store,
GL_EXT_shadow_funcs, GL_EXT_stencil_two_side, GL_EXT_stencil_wrap,
GL_EXT_texture3D, GL_EXT_texture_array, GL_EXT_texture_buffer_object,
GL_EXT_texture_compression_dxt1, GL_EXT_texture_compression_latc,
GL_EXT_texture_compression_rgtc, GL_EXT_texture_compression_s3tc,
GL_EXT_texture_cube_map, GL_EXT_texture_edge_clamp,
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
GL_EXT_texture_filter_anisotropic, GL_EXT_texture_format_BGRA8888,
GL_EXT_texture_integer, GL_EXT_texture_lod, GL_EXT_texture_lod_bias,
GL_EXT_texture_mirror_clamp, GL_EXT_texture_object,
GL_EXT_texture_shared_exponent, GL_EXT_texture_sRGB,
GL_EXT_texture_sRGB_decode, GL_EXT_texture_storage,
GL_EXT_texture_swizzle, GL_EXT_texture_type_2_10_10_10_REV,
GL_EXT_timer_query, GL_EXT_transform_feedback2, GL_EXT_vertex_array,
GL_EXT_vertex_array_bgra, GL_EXT_vertex_attrib_64bit,
GL_EXT_x11_sync_object, GL_EXT_import_sync_object, GL_IBM_rasterpos_clip,
GL_IBM_texture_mirrored_repeat, GL_KTX_buffer_region, GL_NV_alpha_test,
GL_NV_blend_minmax, GL_NV_blend_square, GL_NV_complex_primitives,
GL_NV_conditional_render, GL_NV_copy_depth_to_color, GL_NV_copy_image,
GL_NV_depth_buffer_float, GL_NV_depth_clamp, GL_NV_explicit_multisample,
GL_NV_fbo_color_attachments, GL_NV_fence, GL_NV_float_buffer,
GL_NV_fog_distance, GL_NV_fragdepth, GL_NV_fragment_program,
GL_NV_fragment_program_option, GL_NV_fragment_program2,
GL_NV_framebuffer_multisample_coverage, GL_NV_geometry_shader4,
GL_NV_gpu_program4, GL_NV_gpu_program4_1, GL_NV_gpu_program5,
GL_NV_gpu_program_fp64, GL_NV_gpu_shader5, GL_NV_half_float,
GL_NV_light_max_exponent, GL_NV_multisample_coverage,
GL_NV_multisample_filter_hint, GL_NV_occlusion_query,
GL_NV_packed_depth_stencil, GL_NV_parameter_buffer_object,
GL_NV_parameter_buffer_object2, GL_NV_path_rendering,
GL_NV_pixel_data_range, GL_NV_point_sprite, GL_NV_primitive_restart,
GL_NV_register_combiners, GL_NV_register_combiners2,
GL_NV_shader_atomic_counters, GL_NV_shader_buffer_load,
GL_NV_texgen_reflection, GL_NV_texture_barrier,
GL_NV_texture_compression_vtc, GL_NV_texture_env_combine4,
GL_NV_texture_expand_normal, GL_NV_texture_lod_clamp,
GL_NV_texture_multisample, GL_NV_texture_rectangle, GL_NV_texture_shader,
GL_NV_texture_shader2, GL_NV_texture_shader3, GL_NV_transform_feedback,
GL_NV_transform_feedback2, GL_NV_vdpau_interop, GL_NV_vertex_array_range,
GL_NV_vertex_array_range2, GL_NV_vertex_attrib_integer_64bit,
GL_NV_vertex_buffer_unified_memory, GL_NV_vertex_program,
GL_NV_vertex_program1_1, GL_NV_vertex_program2,
GL_NV_vertex_program2_option, GL_NV_vertex_program3,
GL_NVX_conditional_render, GL_NVX_gpu_memory_info, GL_OES_depth24,
GL_OES_depth32, GL_OES_depth_texture, GL_OES_element_index_uint,
GL_OES_fbo_render_mipmap, GL_OES_get_program_binary, GL_OES_mapbuffer,
GL_OES_packed_depth_stencil, GL_OES_rgb8_rgba8,
GL_OES_standard_derivatives, GL_OES_texture_3D, GL_OES_texture_float,
GL_OES_texture_float_linear, GL_OES_texture_half_float,
GL_OES_texture_half_float_linear, GL_OES_texture_npot,
GL_OES_vertex_array_object, GL_OES_vertex_half_float,
GL_SGIS_generate_mipmap, GL_SGIS_texture_lod, GL_SGIX_depth_texture,
GL_SGIX_shadow, GL_SUN_slice_accum
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x21 24 tc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x22 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x8e 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x8f 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x90 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x91 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x92 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x93 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x94 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x95 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x96 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x97 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x98 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x99 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x9a 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x9b 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x9c 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x9d 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x9e 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x9f 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0xa0 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0xa1 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0xa2 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0xa3 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0xa4 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0xa5 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0xa6 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0xa7 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0xa8 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0xa9 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0xaa 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x5d 32 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None

目前 bumblebee 的發展似乎尚未能夠動態切換 intel 和 nvidia 顯示卡
http://www.omgubuntu.co.uk/2011/05/bumbleebee-brings-nvidia-optimus-gpu-switching-to-linux-users/
https://wiki.archlinux.org/index.php/Bumblebee
所以當您的應用程式要用到 nvidia 顯示卡時,
您要用命令行啟動
$ optirun 您的_應用程式

或者您直接修改固定要用的 應用程式.desktop 檔案來啟動

因為大部份的時候都用內建的 intel 顯示卡
所以在不用的時候要將 nvidia 顯示卡關閉以減少耗電
請參考:
https://github.com/Bumblebee-Project/Bumblebee/wiki/ACPI-Removed
http://hybrid-graphics-linux.tuxfamily.org/index.php?title=ACPI_calls

首先,我們需要安裝 acpi_call 模組
請到 software.opensuse.org 搜尋 acpi_call-kmp
依照您的核心類型選擇所需的套件
$ uname -r
3.1.0-1.2-desktop

所以我要選擇 acpi_call-kmp-desktop 套件
我使用了 home:Ximi1970:bumblebee-unstable 套件庫中的
# zypper ar obs://home:Ximi1970:bumblebee-unstable/openSUSE_12.1 acpi_call
# zypper in acpi_call-kmp-desktop

載入 acpi_call 模組
# modprobe acpi_call

接著根據 http://hybrid-graphics-linux.tuxfamily.org/index.php?title=ACPI_calls#How_to_add_your_model.27s_information
測試您的顯示卡所支援的呼叫方式
1. 顯示您的機型
# dmidecode -s system-product-name && dmidecode -s system-version
Aspire 4752
V2.13

2. 顯示您的顯示卡資訊
# lspci -vnnn | perl -lne 'print if /^\d+\:.+(\[\S+\:\S+\])/' | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0126] (rev 09) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: nVidia Corporation Device [10de:0dea] (rev ff) (prog-if ff)

3. 下載測試 script 並進行測試
因為我們已經先安裝了並載入了 acpi_call 模組,所以不必自己編譯
直接測試即可
$ git clone https://github.com/mkottman/acpi_call.git
Cloning into acpi_call...
remote: Counting objects: 200, done.
remote: Compressing objects: 100% (132/132), done.
remote: Total 200 (delta 109), reused 148 (delta 66)
Receiving objects: 100% (200/200), 32.30 KiB, done.
Resolving deltas: 100% (109/109), done.
$ sh acpi_call/test_off.sh
Trying \_SB.PCI0.P0P1.VGA._OFF: failed
Trying \_SB.PCI0.P0P2.VGA._OFF: failed
Trying \_SB_.PCI0.OVGA.ATPX: failed
Trying \_SB_.PCI0.OVGA.XTPX: failed
Trying \_SB.PCI0.P0P3.PEGP._OFF: failed
Trying \_SB.PCI0.P0P2.PEGP._OFF: failed
Trying \_SB.PCI0.P0P1.PEGP._OFF: failed
Trying \_SB.PCI0.MXR0.MXM0._OFF: failed
Trying \_SB.PCI0.PEG1.GFX0._OFF: failed
Trying \_SB.PCI0.PEG0.GFX0.DOFF: failed
Trying \_SB.PCI0.PEG1.GFX0.DOFF: failed
Trying \_SB.PCI0.PEG0.PEGP._OFF: works!

這表示這個顯示卡可以用 \_SB.PCI0.PEG0.PEGP._OFF 來關閉

接下來要編輯
/etc/bumblebee/cardon
內容為
\_SB.PCI0.PEG0.PEGP._ON

/etc/bumblebee/cardoff
內容為就是剛才的測試結果
\_SB.PCI0.PEG0.PEGP._OFF


最後編輯 /etc/bumblebee/bumblebee.conf
修改
STOP_SERVICE_ON_EXIT=Y
ENABLE_POWER_MANAGEMENT=Y
FALLBACK_START=Y

存檔之後,重新開機,大功告成
您可以察看 /var/log/bumblebee.log
您會看見 nvidia 顯示卡在啟動時被停用的訊息
但是只要您用 optirun 去呼叫
就可以用較強的 nvidia 顯示卡功能
[     26.92] Bumblebee log started at Mon, 02 Jan 2012 22:13:43 +0800
[ 26.93] Creating fifo /var/run/bumblebee.fifo for communication...
[ 26.93] Making FIFO writable for members of group bumblebee
[ 26.95] Unloading driver 'nvidia' on start...
[ 27.01] rmmod /lib/modules/3.1.0-1.2-desktop/updates/nvidia.ko
[ 27.02] Disabling graphics card on start...
[ 27.46] insmod /lib/modules/3.1.0-1.2-desktop/updates/acpi_call.ko
[ 27.47] Waiting for orders

您也可以看一下 /var/log/Xorg.0.log
這是 intel 顯示卡載入驅動的紀錄
還有 /var/log/Xorg.8.log
這是 nvidia 顯示卡用 VirtualGL 在虛擬的 X 載入的紀錄

這台電腦的 Fn 快速鍵大多可以正常運作(多媒體鍵就沒測試了)
Fn+F3 循環切換無線網路與藍牙開關正常
Fn+F4 休眠正常
Fn+F5 看起來像是切換外接螢幕(沒得測)
Fn+F6 關閉螢幕正常
Fn+F7 觸控板開關正常
Fn+F8 音量開關正常
Fn+F12 Scr LK 沒測試
Fn+up-arrow 音量調大正常
Fn+down-arrow 音量調小正常

Fn+F11 數字鍵的部份因為 systemd 的影響而無法用
要加上 init=/sbin/init 核心參數才能正常運作
請小心儘量不要用 release note 中的方法...
參考 http://en.opensuse.org/openSUSE:Managing_Systemd

Fn+right-arrow 螢幕調亮
Fn+left-arrow 螢幕調暗
則需要加上 acpi_backlight=vendor acpi_osi=Linux 的核心參數才能調整


這台電腦的其他資訊:
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 04fc:2801 Sunplus Technology Co., Ltd
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 062a:4101 Creative Labs
Bus 002 Device 003: ID 0489:e03c Foxconn / Hon Hai

其中 Foxconn/HonHai 的裝置是藍牙
目前似乎沒辦法使用
所以用快速鍵把藍牙關起來了

不管怎樣,貼個貼紙佔領起來再說吧!

Have a lot of fun !

2011年11月21日 星期一

openSUSE 12.1 體驗報告(5)

郵件列表 和 論壇 都會有許多人提供許多的情報,
我許多跟大家報告的東西都是由 ML 和 論壇 來的,

如果閱讀英文沒問題,您至少可以訂閱 opensuse@opensuse.org
寫一封空白郵件到 opensuse+subscribe@opensuse.org 即完成訂閱
要發問則寫信到 opensuse@opensuse.org
主要以英文討論為主

openSUSE 中文郵件列表: opensuse-zh@opensuse.org
寫一封空白郵件到 opensuse-zh+subscribe@opensuse.org 即完成訂閱
要發問則寫信到 opensuse-zh@opensuse.org
繁簡體中文皆可,目前此郵件列表蠻冷清的,
您可用中文發問,
您也可以寫個自我介紹發上來,我想大家也會歡迎的

論壇主要以英文溝通為主
若要使用中文討論
請到中文子論壇(繁簡中文通用): http://forums.opensuse.org/ae-ae-chinese/

nvidia 顯示卡驅動程式套件庫已經上線
請由 YaST--軟體套件庫--新增--社群套件庫--nVidia Graphics Drivers 來新增
請選擇並安裝適合您的『顯示卡』及『 核心類型』的套件
請參考: openSUSE NVIDIA drivers
我個人的經驗是安裝完後重開機即可直接使用,不需額外設定

停用 Apper
如果常跳出一個視窗說要設定 network proxy 要您輸入密碼
http://forums.opensuse.org/english/get-technical-help-here/applications/468131-why-authentication-required-set-network-proxy.html
您可以停用 Apper (這樣也會造成系統不會自動搜尋更新,您就要勤快手動更新了)
由 KDE 選單--系統設定--啟動與關閉--服務管理程式--取消使用 Apper Monitor

安裝 gcin
現在 gcin 可以從 M17N 套件庫安裝
http://download.opensuse.org/repositories/M17N/
openSUSE 的多國語言相關套件都是由此開發
使用以下指令:
# zypper ar obs://M17N/openSUSE_12.1 m17n
# zypper ref m17n
# zypper in gcin
正在載入套件庫資料...
讀取已安裝的套件...
正在解決套件相依性...

將會安裝下列新的套件:
gcin gcin-branding-openSUSE gcin-gtk3-immodule gcin-qt4-immodule libreoffice-gnome

5 新套件將被安裝.
全部下載大小: 2.5 MiB。 完成操作後,將增加 10.2 MiB 的使用。
要繼續嗎? [y/n/?] (y): y

我使用了 http://hyperrate.com/dir.php?eid=218 中的 kai-mono 圖示作為預設的圖示
如果您想要用上游 gcin 使用的圖示,請安裝 gcin-branding-upstream

KDE 的使用者若沒有在 gtk3-base 應用程式輸入的需求,
gcin-gtk3-immodule 不見得要安裝,
同理,GNOME3 的使用者也不一定需要 gcin-qt4-immodule,
但是終端使用者可能不見得知道,因為基本桌面安裝時,系統中都有足夠的函式庫
加上 openSUSE 12.1 預設就使用 KDE4 或 GNOME3
所以就一併請大家都安裝了

值得一提的是, openSUSE 又重新提供了 KDE3 的應用程式
如果您的應用程式套件是 kde3 開頭的,您會需要 gcin-qt3-immodule,這就要請您自行安裝了

64 位元架構的系統,若要在 32 位元應用程式中輸入,則需自行加裝 -32bit 的部份

另外 gcin 無法在 libreoffice-kde 中正確游標跟隨(輸入視窗固定在左上角,這樣會害我被老婆罵)
所以我也強制加了 libreoffice-gnome 的相依性
並在 gcin 的啟動程序中強制 libreoffice 使用 gnome 介面
如果您不是使用 gcin 時,libreoffice 則不會被影響,仍依照您系統預設來啟動相對應介面

home:swyear 套件庫仍繼續提供 gcin 套件
基本上我目前的做法是先在 home:swyear 打包,
自己試用一陣子沒問題,才會送到 M17N


gcin 現在也會自動出現在 GNOME 3 的系統匣,不需另外設定

2011年3月15日 星期二

openSUSE 11.4 小技巧


1. 在 KDE 環境中 gtk2 程式的視窗會出現白框(本來這個地方應該要有打光的效果)

可能是由於 nvidia 私有驅動程式和 oxygen-gtk 引擎衝突的關係
您可以升級 nvidia 驅動程式(但可能會用到 beta 版,且只能用 hard way 安裝)
或是改用其他的佈景主題
由 系統設定 -> 應用程式外觀 -> GTK 樣式與字型 來設定
(選擇 oxygen-gtk 以外的主題)

我會建議安裝 qtcurve-kde4 以及 qtcurve-gtk2比較能在外觀上達成一致

2. LibreOffice 無法輸入任何文字
參考 http://en.opensuse.org/LibreOffice
因為 LibreOffice 的 KDE4 整合界面有 bugs
所以應該強迫設成 gnome 的界面
export OOO_FORCE_DESKTOP=gnome

您可以將上面的敘述加到 ~/.profile

2010年7月17日 星期六

安裝完 openSUSE 11.3 之後

這些都是我的習慣性動作,供各位參考
剛安裝完成:
寄件者 openSUSE 11.3

整理一下套件庫,把該新增的該修改的整理一下
寄件者 openSUSE 11.3

習慣上我只留著 Update 會自動重新整理
Debug 和 Source 我都停用
若遇到安裝檔案找不到時
再用 zypper ref 來重新整理
關於套件庫的一些觀念可以參考:
http://help.opensuse.org/ksuseinstall/
新增的套件庫如下:
myrepo.repo
[download.videolan.org-SuSE]
name=VideoLan Repository
enabled=1
autorefresh=0
baseurl=http://download.videolan.org/pub/videolan/vlc/SuSE/11.3/
path=/
type=rpm-md
keeppackages=0

[packman.inode.at-suse]
name=Packman Repository
enabled=1
autorefresh=0
baseurl=http://packman.inode.at/suse/11.3/
path=/
type=rpm-md
keeppackages=0

[subpixel]
name=subpixel
enabled=1
autorefresh=0
baseurl=http://opensuse-community.org/subpixel/openSUSE_11.3
path=/
type=rpm-md
keeppackages=0

[swyear]
name=swyear
enabled=1
autorefresh=0
baseurl=http://download.opensuse.org/repositories/home:/swyear/openSUSE_11.3
path=/
type=rpm-md
keeppackages=0

您可以用
# zypper ar myrepo.repo

來匯入上方的這些套件庫
或直接由網路上匯入:
# zypper ar http://dl.dropbox.com/u/6331820/myrepo.repo

接著開啟軟體管理,會有些自動加入的,就先裝一裝吧
寄件者 openSUSE 11.3

接下來您可以繼續用圖形介面搜尋安裝
但我比較喜歡用命令行

subpixel hinting
在液晶螢幕上讓反鋸齒字型更銳利清晰
若喜歡用點陣字就不必了
這程式可能會和某些特效衝突(以前遇過,忘了)
安裝時有時會要您確認變更廠商(供應商),就是要確認這個程式以後要用這個安裝來源
# zypper in --from subpixel freetype2-feature-subpixel-hinting
正在建立套件庫 'VideoLan Repository' 的快取 [完成]
正在建立套件庫 'Packman Repository' 的快取 [完成]
正在建立套件庫 'subpixel' 的快取 [完成]
正在建立套件庫 'swyear' 的快取 [完成]
正在載入套件庫資料...
讀取已安裝的套件...
正在解決套件相依性...

問題: freetype2-feature-subpixel-hinting-2.4.0-999.subpixel.19.1.i586 需要 libfreetype6 = 2.4.0-999.subpixel.19.1,但無法提供此需求
無法安裝的提供者: libfreetype6-2.4.0-999.subpixel.19.1.i586[subpixel]
解決方案 1:安裝 libfreetype6-2.4.0-999.subpixel.19.1.i586 (並變更廠商)
openSUSE --> obs://10.8.0.1/subpixel
解決方案 2:請勿安裝 freetype2-feature-subpixel-hinting-2.4.0-999.subpixel.19.1.i586
解決方案 3:藉由忽略某些它的相依性破壞 freetype2-feature-subpixel-hinting

使用'數字'選擇上列的解決方法,或取消(使用'c') [1/2/3/c] (c): 1
正在解析相依性...
正在解決套件相依性...

將會安裝下列新的套件:
freetype2-feature-subpixel-hinting

下列套件將會升級:
libfreetype6

下列套件將會變更供應商:
libfreetype6 openSUSE -> obs://10.8.0.1/subpixel


1 套件將升級, 1 新的, 1 將變更供應商.
全部下載大小: 355.0 KiB。 完成操作後,將釋出 120.0 KiB。
要繼續嗎? [y/n/?] (y): y

安裝完後要開啟次像素顯示
KDE 和 GNOME 都有圖形介面可用
寄件者 openSUSE 11.3

寄件者 openSUSE 11.3

若是 LXDE 或其他桌面,可以直接
# ln -s /etc/fonts/conf.avail/10-sub-pixel-rgb.conf /etc/fonts/conf.d/
# fc-cache

在這裡 10-sub-pixel-rgb.conf 要看您的螢幕是用那一種
可能會是 bgr, vrgb 或 vbgr
字型解析度依照您個人喜好調整
KDE 預設只有幾種選擇
若不滿意可以在 $HOME/.Xresources (通常沒這個檔案要自己產生)
自行設定
Xft.dpi: 112.0


libdvdcss
播放 DVD 會用到
# zypper in --from 'VideoLan Repository' libdvdcss
正在載入套件庫資料...
讀取已安裝的套件...
正在解決套件相依性...

將會安裝下列新的套件:
libdvdcss

1 新套件將被安裝.
全部下載大小: 18.0 KiB。 完成操作後,將增加 34.0 KiB 的使用。
要繼續嗎? [y/n/?] (y): y


Chinese
習慣上我會刪除 scim 安裝 gcin
pcmanx-gtk2 是為了方便上 BBS
chinese-fonts-setting 則是我個人的字型設定檔
例如我偏好使用 Droid Sans Fallback 來顯示中文
# zypper in gcin pcmanx-gtk2 chinese-fonts-setting -scim
正在載入套件庫資料...
讀取已安裝的套件...
正在解決套件相依性...

問題: scim-tables-0.5.8-257.1.i586 需要 libscim-1.0.so.8,但無法提供此需求
解決方案 1:下列行動將被執行:
反安裝 scim-tables-0.5.8-257.1.i586
反安裝 plasma-addons-scim-4.4.4-1.3.i586
反安裝 mlterm-scim-2.9.4-7.2.i586
反安裝 scim-bridge-0.4.15-121.1.i586
反安裝 scim-chewing-0.3.3-6.1.i586
反安裝 scim-input-pad-0.1.1-279.1.i586
反安裝 scim-m17n-0.2.2-235.1.i586
反安裝 scim-pinyin-0.5.91.20060705-272.1.i586
反安裝 scim-qtimm-0.9.4-278.1.i586
反安裝 scim-bridge-gtk-0.4.15-121.1.i586
反安裝 scim-bridge-qt-0.4.15-121.1.i586
反安裝 scim-tables-zh-0.5.8-257.1.i586
解決方案 2:保留 scim-1.4.7-174.1.i586
解決方案 3:藉由忽略某些它的相依性破壞 scim-tables

使用'數字'選擇上列的解決方法,或取消(使用'c') [1/2/3/c] (c): 1
正在解析相依性...
正在解決套件相依性...

將會安裝下列新的套件:
chinese-fonts-setting gcin pcmanx-gtk2

下列套件將會被移除:
mlterm-scim plasma-addons-scim scim scim-bridge scim-bridge-gtk
scim-bridge-qt scim-chewing scim-input-pad scim-m17n scim-pinyin scim-qtimm
scim-tables scim-tables-zh

3 新套件將被安裝, 13 將移除.
全部下載大小: 1.6 MiB。 完成操作後,將釋出 15.6 MiB。
要繼續嗎? [y/n/?] (y): y

下面是改用我的黑體字設定
刪除原本的文泉驛正黑體設定
# ln -s /etc/fonts/conf.avail/57-hei.conf /etc/fonts/conf.d/
# rm /etc/fonts/conf.d/57-wqy-zenhei.conf
# fc-cache


multimedia
下面大概是每個 openSUSE 使用者必用的
安裝多媒體支援
這裡是提供 KDE 使用者的
(GNOME 或 LXDE 等其他桌面通常把 gstreamer 相關套件裝上就 OK 了(packman))
# zypper in ffmpeg flash-player libxine1-codecs w32codec-all k3b-codecs lame
正在載入套件庫資料...
讀取已安裝的套件...
'flash-player' 已經安裝。
No update candidate for 'flash-player-10.1.53.64-2.1.1.i586'. The highest available version is already installed.
'libxine1-codecs' 已經安裝。
No update candidate for 'libxine1-codecs-1.1.18.1-2.pm.41.1.i586'. The highest available version is already installed.
正在解決套件相依性...

問題: k3b-codecs-2.0.0-1.pm.2.7.i586 需要 k3b = 2.0.0,但無法提供此需求
無法安裝的提供者: k3b-2.0.0-1.pm.2.7.i586[packman.inode.at-suse]
解決方案 1:安裝 k3b-2.0.0-1.pm.2.7.i586 (並變更廠商)
openSUSE --> http://packman.links2linux.de
解決方案 2:請勿安裝 k3b-codecs-2.0.0-1.pm.2.7.i586
解決方案 3:藉由忽略某些它的相依性破壞 k3b-codecs

使用'數字'選擇上列的解決方法,或取消(使用'c') [1/2/3/c] (c): 1
正在解析相依性...
正在解決套件相依性...

將會安裝下列新的套件:
ffmpeg k3b-codecs lame libavdevice52 libavfilter1 libavformat52 libjack0
libmad0 libstdc++33 libswscale0 w32codec-all

下列套件將會升級:
k3b

下列套件將會變更供應商:
k3b openSUSE -> http://packman.links2linux.de


1 套件將升級, 11 新的, 1 將變更供應商.
全部下載大小: 21.2 MiB。 完成操作後,將增加 51.2 MiB 的使用。
要繼續嗎? [y/n/?] (y): y


java-sun
習慣上還是使用 sun 的 java 比較不會出問題
順便把 openjdk 的移除
# zypper in java-1_6_0-sun-plugin -java-1_6_0-openjdk
正在載入套件庫資料...
讀取已安裝的套件...
正在解決套件相依性...

問題: java-1_6_0-openjdk-plugin-1.6.0.0_b17-7.3.i586 需要 java-1_6_0-openjdk = 1.6.0.0_b17-7.3,但無法提供此需求
解決方案 1:反安裝 java-1_6_0-openjdk-plugin-1.6.0.0_b17-7.3.i586
解決方案 2:保留 java-1_6_0-openjdk-1.6.0.0_b17-7.3.i586
解決方案 3:藉由忽略某些它的相依性破壞 java-1_6_0-openjdk-plugin

使用'數字'選擇上列的解決方法,或取消(使用'c') [1/2/3/c] (c): 1
正在解析相依性...
正在解決套件相依性...

將會安裝下列新的套件:
java-1_6_0-sun java-1_6_0-sun-plugin

下列套件將會被移除:
java-1_6_0-openjdk java-1_6_0-openjdk-plugin

2 新套件將被安裝, 2 將移除.
全部下載大小: 22.5 MiB。 完成操作後,將增加 4.0 MiB 的使用。
要繼續嗎? [y/n/?] (y): y


大部分的人會建議套件庫只要留下 oss, non-oss, update, packman 4個就OK 了
其他套件庫可以移除或停用

剛安裝好通常光碟還在,您可以這時將光碟的優先順序調高(預設都是 99)
例如調成 98 (數字愈小,愈優先使用)
這時來安裝一些其他在光碟中的套件會快速方便許多
例如我要安裝 kernel-devel gcc make 這些東西來安裝 nvidia 驅動程式
您可以參考之前的文章

完成的桌面:
寄件者 openSUSE 11.3


您可能會遇到的問題:
1. 在某些情況下,筆記型電腦的網路仍使用傳統 ifup 方式設定
請在 YaST 中改成 NetworkManager 方式控制
寄件者 openSUSE 11.3

2. 第一次開機 KDE 的 NetworkManager 是壞的,
得再重新登入一次才能連線
3. 觸控板的 Tap (在板上點擊)可能是停用的
請在控制中心啟用
寄件者 openSUSE 11.3

KDE GNOME LXDE 都有圖形介面可用
若無法儲存觸控板設定
試著在進入桌面時自動執行
synclient TapButton1=1 TapButton2=2


推薦網站:
http://omgsuse.com/

提醒:
在 http://software.opensuse.org 搜尋套件現在會預設排除 home project 和 debug 套件
寄件者 openSUSE 11.3


小技巧:
命令行加入 obs (openSUSE Build Service) 套件庫的簡寫法
zypper ar obs://home:swyear:ibus/openSUSE_11.3 ibus
正在新增套件庫 'ibus' [完成]
已成功新增套件庫 'ibus'
已啟用: 是
自動重新整理: 否
URI: http://download.opensuse.org/repositories/home:/swyear:/ibus/openSUSE_11.3


請參考:
http://opensuse-community.org/Welcome_to_openSUSE-Community.org

2010年6月26日 星期六

openSUSE 11.3 rc1 測試(2)

1. 提醒:在正式版本釋出前,最好不要把他當成工作平台,有許多的套件庫可能還沒準備好
像是 nvidia 專利的驅動程式套件庫,packman 套件庫有些套件好像也還找不到
請要使用的同好要抱著測試的心態

2. 在 11.3 RELEASE NOTES 中有一段:
使用 KMS (Kernel Mode Setting) 初始化顯示卡
在 openSUSE 11.3 我們已為 Intel, ATI 和 NVIDIA 顯示卡切換到 KMS,這是我們的預設值。
若您在 KMS 驅動程式支援(intel, radeon, nouveau)遇到問題,可以在核心開機指令行加上
nomodeset 來停用 KMS。要永久設定此參數,請將他加到
/boot/grub/menu.lst 的核心指令行中。此選項會確認相對應的
核心模組(intel, radeon, nouveau)在 initrd 載入時會使用
modeset=0,也就是說,停用 KMS。
在少數情況下,當從 initrd 載入 DRM 模組時會產生問題,我們
也可以完全在 initrd 停止載入 DRM 模組。要這樣做的話,用 YaST
設定 sysconfig 變數 NO_KMS_IN_INITRD 為 yes,
完成後會重新產生 initrd,接著請您重新開機。
在 Intel 顯示卡不用 KMS 的話,X伺服器會回歸到 fbdev 驅動程式
(intel 驅動程式只支援 KMS)。在 ATI 當下主流的 GPU 顯示卡則會回歸使用
radeonhd。在 NVIDIA 顯示卡沒有 KMS 則會使用 nv 驅動
程式(nouveau 驅動程式只支援 KMS)。

看不懂沒關係,遇到問題照著做就是了
雖然 nvidia 的套件庫還沒準備好,但是可以自行到 nvidia 網站下載來安裝
要先準備好 kernel-devel, gcc, make
# zypper in kernel-devel gcc make

驅動程式和編譯環境都準備好後,重開機
在開機畫面的指令行中輸入
nomodeset 3

停用 KMS 並進入 runlevel 3
用 root 登入,切換到 nvidia 驅動程式目錄執行
# sh NVIDIA-Linux-******.run

就可以順利安裝
接著執行
# yast

用 Tab 空白鍵,以及上下左右鍵控制,找到
系統->sysconfig 編輯器->kernel->將 NO_KMS_IN_INITRD 改成 yes
重新開機,就可以使用 nvidia 的專利驅動程式
(以後用 nvidia 套件庫安裝 rpm 不知道會不會這麼麻煩)

3. /etc/X11/xorg.conf 在 11.2 就已經不用了
所以,我們的好朋友 sax2 在 11.3 也正式功成身退...

4. 在這一版(rc1)中,還要再自行安裝 hal 這個套件,不然電源管理、usb 隨身碟之類的聽說都不能用(根據 Most Annoying Bug)
# zypper in hal; /sbin/insserv haldaemon 

2009年12月9日 星期三

konsole 畫面延遲

不論使用 kwin 或 compiz 的 composite 功能時
konsole 畫面常卡住或造成文字重疊
要再去移動視窗才會更新畫面
將 konsole 的執行命令改用 konsole -graphicssystem raster
您可以直接修改 /usr/share/applications/kde4/konsole.desktop
Exec=konsole -graphicssystem raster


2009年11月14日 星期六

openSUSE 11.2 的小技巧(1)

花了半小時裝好了 openSUSE 11.2(花了我兩個晚上下載)
看到什麼就寫些什麼吧!

NVIDIA 驅動程式:
http://en.opensuse.org/New_NVIDIA_cards
目前 11.2 的 nvidia 的單鍵安裝好像還沒準備好
社群套件庫清單中也還沒有 NVIDIA Repository
所以自行增加套件庫
# zypper ar ftp://download.nvidia.com/opensuse/11.2/ nvidia
# zypper ref
#zypper in x11-video-nvidiaG02

重新登入即可
註:較舊的顯示卡可能要用 x11-video-nvidiaG01

scim 的系統匣圖示無法顯示:
scim 是預設的輸入法
沒有圖示並不影響使用(只要按 Ctrl-Space 就可以呼叫出輸入法)
如果你覺得很不爽的話,照著作吧:
按 Ctrl-Esc 可以呼叫出系統活動的視窗
把 scim-panel-gtk 殺掉
系統匣的圖示會自動重新載入(所以他只是沒顯示出來而已)
我們可以請電腦幫我們作這件事
編寫一個文字檔,取名(例如:) kill-scim-panel-gtk
內容如下:
#!/bin/bash
killall scim-panel-gtk

然後加上可執行的權限
$ chmod +x kill-scim-panel-gtk

把這檔案放到 ~/.kde4/Autostart/ 中(我使用 KDE4)
$ cp kill-scim-panel-gtk ~/.kde4/Autostart/

重新登入,系統匣中 scim 圖示就會自動出現了

2009年1月4日 星期日

nvidia, KDE4 and openSUSE 11.1

使用 nvidia 顯示卡和 kde 4 會有些效能上的問題
您可以參考 http://userbase.kde.org/GPU-Performance
目前(尤其是) NVIDIA 顯示卡驅動程式和 kwin (KDE4 的視窗管理員)
以及 plasma ( KDE4 的桌面 shell) 都不太能配合
通常您可以使用 compiz 做視窗管理員來避免使用 kwin
plasma 的部份您就逃不掉了
(在此順便一提,請使用 X11:/XGL 的套件庫,升級 compiz, emerald 等到最新套件
就不會有 emerald 視窗裝飾消失的情況發生,
勿使用 X11:/Compiz 套件庫)
上面的連結中提供了一些增進圖形效能的臨時辦法
除了升級到 beta 版的驅動程式外,其他建議似乎效果不顯著
如果您像我一樣有個桌面上的桌面資料夾
寄件者 openSUSE 11.1

請試試看從這桌面資料夾來啟動程式
顯示忙碌的游標跳動大概要等1秒才出現
在這桌料夾拖曳圖示看看,完全會慢半拍
我會關掉這個資料夾,然後在桌面上按右鍵
選擇"桌面設定",將"桌面活化"類型改為"資料夾檢視"
寄件者 openSUSE 11.1

就會變成以前的樣子
寄件者 openSUSE 11.1

(但效能改進有限)
(若要改回原來的樣子,在桌面活化類型選"桌面Desktop without toolbox",確定。
在桌面上按右鍵"新增元件",將"資料夾檢視"拖曳到桌面,
設定該資料夾(扳手圖示)位置為桌面)

根據 http://userbase.kde.org/GPU-Performance 文章的提示
nvidia 不斷的在改進這方面的問題,因此
雖然一般都不建議使用 beta 版本,
我還是決定來試試看...

下載 nvidia 驅動程式
穩定版 for Unix: http://www.nvidia.com.tw/object/unix_tw.html
32 位元的 Linux 作業系統請選 Linux IA32
64 位元的 Linux 作業系統請選 Linux AMD64/EM64T 版本
在 openSUSE 中單鍵安裝或
用 http://download.nvidia.com/opensuse/{Version} 套件庫安裝的就是這穩定的版本
請參考 http://en.opensuse.org/Nvidia 使用單鍵安裝或加入 NVIDIA 社群套件庫來安裝
(只要在社群套件庫中勾選 NVIDIA 套件庫,11.1 會在您使用 YaST 新增移除套件時,
自動幫您裝上 NVIDIA 的驅動程式)

Beta 版本的 nvidia 驅動程式可由 http://www.nvidia.com.tw/Download/Find.aspx?lang=tw 取得
我是直接由 ftp://download.nvidia.com/XFree86/Linux-x86/180.18/ 取得 180.18 的版本(這是 32 位元版本)
注意:使用 beta 版的驅動程式可能會付出系統不穩定的代價
pkg# 後面的號碼是代表預先編譯的環境(如果我們確定是要自行編譯,應該是沒差的,
您可以選擇檔案較小的)
安裝步驟參考 http://en.opensuse.org/Nvidia#The_hard_way (已經告訴您有點難了喔)
先安裝好 kernel-source gcc make 等套件
# zypper in kernel-source gcc make

看原本裝了哪些 nvidia 驅動程式(您使用的核心和驅動程式可能會不同)
沒錯的話將之刪除
# rpm -qa | grep nvidia
x11-video-nvidiaG02-177.82-1.1
nvidia-gfxG02-kmp-pae-177.82_2.6.27.7_9.1-1.1
# rpm -e `rpm -qa | grep nvidia`
WARNING: /lib/modules/2.6.27.7-9-pae/kernel/sound/i2c/other/snd-tea575x-tuner.ko needs unknown symbol video_exclusive_open
WARNING: /lib/modules/2.6.27.7-9-pae/kernel/sound/i2c/other/snd-tea575x-tuner.ko needs unknown symbol video_exclusive_release
22861 blocks
------------------------------------------------------------------------
Switching the use of "nvidia" driver of NVIDIA to "nv" driver of X.Org
------------------------------------------------------------------------

Patching /etc/X11/xorg.conf ... done

為了避免 NVIDIA 自動安裝,我們要停用 NVIDIA 套件庫
# zypper lr
# | 別名 | 名稱 | 已啟用 | 重新整理
---+-------------------------------+-------------------------------+-----------+---------
1 | Libdvdcss repository | Libdvdcss repository | 是 | 否
2 | Packman Repository | Packman Repository | 是 | 否
3 | X11:XGL | X11:XGL | 是 | 否
4 | openSUSE 11.1-0 | openSUSE 11.1-0 | 否 | 否
5 | repo | NVIDIA Repository | 是 | 否
6 | repo-debug | openSUSE-11.1-Debug | 否 | 否
7 | repo-non-oss | openSUSE-11.1-Non-Oss | 是 | 否
8 | repo-oss | openSUSE-11.1-Oss | 是 | 否
9 | repo-source | openSUSE-11.1-Source | 否 | 否
10 | repo-update | openSUSE-11.1-Update | 是 | 是
11 | swyear | swyear | 是 | 否

Nvidia 套件庫在第5個
# zypper mr -d 5
套件庫 'repo' 已成功停用。

接下來我們要關閉 X,在文字模式下安裝
按 Ctrl-Alt+F1(F1~F6均可)
用 root 登入
# cd {您的NVIDIA-Linux-*.run所在位置}
# init 3 (跑完後按個 Enter才會出現提示符號#)
# sh NVIDIA-Linux-*.run (可用 Tab 自動補滿)

接下來會請您接受授權合約(請用左右鍵將光棒移到 Accept 按 Enter)
No precompiled kernel interface was found to match your kernel; would you like the
installer to attempt to download a kernel interface for your kernel from the NVIDIA ftp site
(ftp://download.nvidia.com)?

因為沒有預先編譯好的核心介面,問您要不要下載?(通常是下載不到的...)回答:Yes 試試看吧
No matching precompiled kernel interface was found in the NVIDIA ftp site; this means
that the installer will need to compile a kernel interface for your kernel.

我就說吧...請回答 OK,讓安裝程式自行編譯核心介面
然後安裝程式會開始編譯核心模組,檢查衝突的檔案,安裝核心模組
Would you like to run the nvidia-xconfig utility to automatically update your configuration
file so that the NVIDIA X driver will be used when you restart X? Any pre-existing X configuration
file will be backed up.

問您要不要自動更新您的 X 設定檔,當然要囉
Your X configuration file has been successfully updated. Installation of NVIDIA Acceleration
Graphics Driver for Linux-x86 (version: 180.18) is now complete.

完成了
openSUSE 使用者要記得下面的命令
# sax2 -r -m 0=nvidia

指定使用 nvidia 驅動程式並調整螢幕大小及解析度
別忘了測試
完成之後
# init 5

會閃現 NVIDIA Beta driver 的 logo,再次進入 X。

根據上面桌面資料夾中啟動程式與拖曳圖示看來,情況真的有改善
魔獸世界也照常玩,但是休眠到記憶體(s2ram)失效了
可以睡著,但是醒不來,會變成重開機(然後修復硬碟...)
您可以換回原本的驅動程式,或者 s2ram 您可以不用的話...
在系統設定->進階->電源管理->編輯設定檔
將出現"暫停並儲存到記憶體"的地方都改掉,例如改成"鎖定螢幕"
寄件者 openSUSE 11.1

尤其筆記型電腦預設蓋子蓋上就會休眠到記憶體
順便一提,剛裝好時螢幕亮度不對,也是在這裡調整。

若要換回原本 NVIDIA 套件庫中的驅動程式:
Ctrl-Alt+F1
以 root 登入
# init 3
# nvidia-installer --uninstall

若您下載的 NVIDIA-Linux-*.run 還在,您也可以
# cd {NVIDIA-Linux-*.run 所在目錄}
# sh NVIDIA-Linux-*.run --uninstall

完成後,重新啟用 NVIDIA 套件庫,安裝驅動程式
# zypper mr -e 5
# yast sw_single

第二個指令會直接呼叫文字介面的 YaST 的軟體管理
11.1 中您只要按 Tab 到 Accept 按 Enter 就可以了
他就會將原有的驅動程式裝上了,最後
# init 5
# shutdown -r now

重新啟動電腦

我決定用 beta 一陣子,這樣我在 YaST 的軟體管理中點選套件時
不至於慢半拍,有不能忍受的缺點時再換回來吧

2009/01/05 更新:
在 http://techbase.kde.org/User:Lemma/KDE4-NVIDIA 有很多成功的案例
也包含 openSUSE
先測試
$ nvidia-settings -a InitialPixmapPlacement=2 -a GlyphCache=1

大部份 N 卡 8,9 系列的(運氣好的話),都有機會在效能上得到很大的提升
我就是運氣好的那個:)
konsole 的殘像,桌面資料夾的遲緩,YaST 軟體管理的問題都有很大的改善
正如其他人所說的
所感受到的改善是 huge (我現在的感覺也是如此)
您也可以試試看
將下面這個檔案 fix-nv.sh 放在 ~/.kde4/Autostart/
#!/bin/bash
nvidia-settings -a InitialPixmapPlacement=2 -a GlyphCache=1 &

記得賦與此檔案執行權限
$ chmod +x fix-nv.sh

我又回到正式版的 nvidia 驅動程式了

2008年10月27日 星期一

s2ram

上次跟大家報告,說這台 asus f6s 無法休眠到記憶體
請容我更正一下,當然,是要費些手腳的(但是很簡單)
先說明一下:
原本由 KDE 選單中選擇『暫停寫入到 RAM』(Suspend to RAM)
系統沒有反應
而按下休眠快速鍵 Fn+ZZ
則會出現螢幕保護鎖定,輸入密碼解鎖後,則出現
寄件者 openSUSE 11.0 GM

察看紀錄:
Mon Oct 27 19:25:49 CST 2008: running suspend hooks.
===== Mon Oct 27 19:25:49 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/00clear =====
===== Mon Oct 27 19:25:49 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/01logging =====
suspend initiated: Mon Oct 27 19:25:49 CST 2008

Module Size Used by
ip6t_LOG 23940 7
xt_tcpudp 20480 2
xt_pkttype 18944 3
xt_physdev 19728 2
ipt_LOG 23428 8
xt_limit 20356 15
af_packet 42624 4
snd_pcm_oss 68992 0
snd_mixer_oss 35584 1 snd_pcm_oss
snd_seq 83600 0
snd_seq_device 26516 1 snd_seq
binfmt_misc 30220 1
bridge 81192 1
bnep 35200 2
ip6t_REJECT 22272 3
nf_conntrack_ipv6 36424 4
ipt_REJECT 21120 3
xt_state 19712 8
iptable_mangle 20608 0
iptable_nat 24976 0
nf_nat 39576 1 iptable_nat
iptable_filter 20736 1
ip6table_mangle 20480 0
nf_conntrack_netbios_ns 19968 0
usbhid 65488 0
nf_conntrack_ipv4 29576 7 iptable_nat,nf_nat
hid 59296 1 usbhid
nf_conntrack 91536 6 nf_conntrack_ipv6,xt_state,iptable_nat,nf_nat,nf_conntrack_netbios_ns,nf_conntrack_ipv4
ff_memless 23176 1 usbhid
ip_tables 39056 3 iptable_mangle,iptable_nat,iptable_filter
cpufreq_conservative 26248 0
cpufreq_userspace 23556 0
cpufreq_powersave 18816 0
acpi_cpufreq 27536 1
ip6table_filter 20608 1
ip6_tables 40720 3 ip6t_LOG,ip6table_mangle,ip6table_filter
x_tables 43144 12 ip6t_LOG,xt_tcpudp,xt_pkttype,xt_physdev,ipt_LOG,xt_limit,ip6t_REJECT,ipt_REJECT,xt_state,iptable_nat,ip_tables,ip6_tables
ipv6 331544 19 ip6t_REJECT,nf_conntrack_ipv6,ip6table_mangle
microcode 32808 0
fuse 72384 5
loop 37508 0
dm_mod 88600 0
rfcomm 63392 4
l2cap 44160 12 bnep,rfcomm
arc4 19072 2
ecb 20992 2
crypto_blkcipher 38916 1 ecb
snd_hda_intel 497580 1
hci_usb 34716 0
iwl3945 116196 0
btusb 25496 2
uvcvideo 76040 0
firmware_class 27776 2 microcode,iwl3945
snd_pcm 115208 2 snd_pcm_oss,snd_hda_intel
rtc_cmos 28728 0
compat_ioctl32 25984 1 uvcvideo
sr_mod 35764 0
iTCO_wdt 30800 0
snd_timer 45072 2 snd_seq,snd_pcm
videodev 52096 2 uvcvideo,compat_ioctl32
mac80211 220568 1 iwl3945
usb_storage 112928 0
rtc_core 41012 1 rtc_cmos
rtc_lib 20224 1 rtc_core
bluetooth 82340 9 bnep,rfcomm,l2cap,hci_usb,btusb
video 43156 11
joydev 30848 0
snd_page_alloc 28688 2 snd_hda_intel,snd_pcm
cdrom 53416 1 sr_mod
sg 56912 0
v4l1_compat 29444 2 uvcvideo,videodev
iTCO_vendor_support 21124 1 iTCO_wdt
serio_raw 24708 0
cfg80211 39568 1 mac80211
output 21248 1 video
asus_laptop 38492 0
battery 33672 0
nvidia 8165472 40
snd_hwdep 28424 1 snd_hda_intel
ac 24328 0
r8169 51332 0
button 27040 0
snd 96248 10 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_pcm,snd_timer,snd_hwdep
led_class 22920 1 asus_laptop
soundcore 26000 1 snd
i2c_core 45344 1 nvidia
sd_mod 47280 6
ehci_hcd 56204 0
uhci_hcd 43936 0
usbcore 188376 8 usbhid,hci_usb,btusb,uvcvideo,usb_storage,ehci_hcd,uhci_hcd
edd 28176 0
ext3 170896 2
mbcache 27396 1 ext3
jbd 82368 1 ext3
fan 23944 0
ata_piix 43396 0
ahci 51080 5
libata 195232 2 ata_piix,ahci
scsi_mod 195032 5 sr_mod,usb_storage,sg,sd_mod,libata
dock 29344 1 libata
thermal 44448 0
processor 72920 4 acpi_cpufreq,thermal

total used free shared buffers cached
Mem: 3095064 726312 2368752 0 27660 336628
-/+ buffers/cache: 362024 2733040
Swap: 2097544 0 2097544

===== Mon Oct 27 19:25:49 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/05led =====
===== Mon Oct 27 19:25:49 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/06autofs =====
===== Mon Oct 27 19:25:49 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/10NetworkManager =====
===== Mon Oct 27 19:25:49 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/20reset-bluetooth =====
===== Mon Oct 27 19:25:49 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/30s2disk-check =====
===== Mon Oct 27 19:25:49 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/45pcmcia =====
ejecting PCMCIA cards...
===== Mon Oct 27 19:25:49 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/50modules =====
===== Mon Oct 27 19:25:49 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/55battery =====
===== Mon Oct 27 19:25:49 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/80acpi-fan =====
===== Mon Oct 27 19:25:49 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/80videobios =====
===== Mon Oct 27 19:25:49 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/94cpufreq =====
===== Mon Oct 27 19:25:49 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/95led =====
===== Mon Oct 27 19:25:49 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/99Zgrub =====
===== Mon Oct 27 19:25:49 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/99info =====
Mon Oct 27 19:25:49 CST 2008: done running suspend hooks.
+ /usr/sbin/s2ram
Machine is unknown.
This machine can be identified by:
sys_vendor = "ASUSTeK Computer Inc. "
sys_product = "F6S "
sys_version = "1.0 "
bios_version = "304 "
See http://en.opensuse.org/S2ram for details.

If you report a problem, please include the complete output above.
If you report success, please make sure you tested it from both X and
the text console and preferably without proprietary drivers.
+ RET=127
+ set +x
Mon Oct 27 19:25:50 CST 2008: running resume hooks.
===== Mon Oct 27 19:25:50 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/99info =====
===== Mon Oct 27 19:25:50 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/99Zgrub =====
===== Mon Oct 27 19:25:50 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/95led =====
===== Mon Oct 27 19:25:50 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/94cpufreq =====
===== Mon Oct 27 19:25:50 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/80videobios =====
===== Mon Oct 27 19:25:50 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/80acpi-fan =====
===== Mon Oct 27 19:25:50 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/55battery =====
method return sender=:1.1 -> dest=:1.254 reply_serial=2
boolean false
===== Mon Oct 27 19:25:50 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/50modules =====
===== Mon Oct 27 19:25:50 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/45pcmcia =====
inserting PCMCIA cards...
===== Mon Oct 27 19:25:50 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/30s2disk-check =====
===== Mon Oct 27 19:25:50 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/20reset-bluetooth =====
===== Mon Oct 27 19:25:50 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/10NetworkManager =====
===== Mon Oct 27 19:25:50 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/06autofs =====
===== Mon Oct 27 19:25:50 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/05led =====
===== Mon Oct 27 19:25:50 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/01logging =====
===== Mon Oct 27 19:25:50 CST 2008: running hook: /usr/lib/pm-utils/sleep.d/00clear =====
Mon Oct 27 19:25:50 CST 2008: done running resume hooks.

裏面看得懂的就是要你到
http://en.opensuse.org/S2ram 看看
果然看了就得到解答了
其實有時只是您的機器沒有列入白名單中,說不支援倒是未必
# s2ram
Machine is unknown.
This machine can be identified by:
sys_vendor = "ASUSTeK Computer Inc. "
sys_product = "F6S "
sys_version = "1.0 "
bios_version = "304 "
See http://en.opensuse.org/S2ram for details.

If you report a problem, please include the complete output above.
If you report success, please make sure you tested it from both X and
the text console and preferably without proprietary drivers.

重點就是 Machine is unknown,意思就是不在白名單中
您還是可以強迫他進行 suspend to ram
以下說明都是從 http://en.opensuse.org/S2ram 抄過來的
您可以先試試 s2ram -f 強迫執行(我很好運的就 OK 了)
(根據下面的說明 nvidia 顯示卡晶片大部份用這個就可以了)
若不行,請一個一個試試以下指令
s2ram -f -a 3
s2ram -f -a 2
s2ram -f -a 1
s2ram -f -p -m
s2ram -f -p -s
s2ram -f -m
s2ram -f -s
s2ram -f -p
s2ram -f -a 1 -m
s2ram -f -a 1 -s

若都不行,再加個 -v 重試一次
請確認在 X 環境中,與 Console 環境中(用 Ctrl+Alt+F1 登入測試)都無誤
通常 intel 顯示卡可以用
s2ram -f -a 3 或 s2ram -f -p -m
ATI
Radeon 顯卡要在 kernel 傳入 vga=0 的參數,用 s2ram -f -p -m 或 s2ram -f -p -s
Nvidia 用
s2ram -f 並參考 NVidia Suspend HOWTO(我照做後發現似乎沒什不同)
詳細內容請參考原文喔
找到適合參數後
編輯一文字檔,例如 force_s2ram 內容為
S2RAM_OPTS="-f"

(當然要依照您測試的結果來寫,例如 s2ram -f -a 3 可成功,則應為
S2RAM_OPTS="-f -a 3" )
將此文字檔放在 /etc/pm/config.d/ 中
# cp force_s2ram /etc/pm/config.d/

這樣就完成了
用 KDE 選單的『暫停寫入到 RAM』或快速鍵 Fn+ZZ
就會在5秒內進入休眠,剩下一個燈泡形狀的指示燈慢慢閃爍
隨便按一個鍵,又會在5秒內回復成原來的工作
爽度蠻高的呢!

最後一件事
別忘了寫信到 suspend-devel@lists.sourceforge.net
說明您如何讓您的機器順利運作
並附上 s2ram -n
還有說謝謝

最後還是引用 http://en.opensuse.org/S2ram 的最後一句話來結束本文
"別放棄!"