hnuzhoulin 于 2011-03-26 21:23:20发表:
引用:
应该是都识别了。
热切换参考这里http://ubuntuforums.org/showthread.php?t=1495123&page=3
英文的,我把它简单注释在下面:
#查看当前值
root@BOX:~# cat /sys/kernel/debug/vgaswitcheroo/switch
0:+:Pwr:00 ...
alick 发表于 2010-12-29 17:03
学习了啊。明天打算去买笔记本呢
wujing89x 于 2011-03-11 19:13:55发表:
现在还不知道自己的电脑是在用独立显卡还是集成的
alick 于 2010-12-30 16:05:44发表:
10# wujing89x
表示没有自己安装驱动吧。系统默认的MESA驱动。
楼主的双显卡切换好使了吗?
wujing89x 于 2010-12-29 22:07:45发表:
还有我电脑里没有这个文件夹
vgaswitcheroo/switch
我装电脑是驱动就有了
wujing89x 于 2010-12-29 22:06:41发表:
用了这个后glxinfo |head -n 40引用:
name of display: :0.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_MESA_copy_sub_buffer,
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 version: 1.4
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_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) Ironlake Mobile GEM 20100330 DEVELOPMENT
OpenGL version string: 2.1 Mesa 7.9
OpenGL shading language version string: 1.20
OpenGL extensions:
GL_ARB_copy_buffer, GL_ARB_depth_clamp, GL_ARB_depth_texture,
GL_ARB_draw_buffers, GL_ARB_draw_elements_base_vertex,
GL_ARB_fragment_coord_conventions, GL_ARB_fragment_program,
GL_ARB_fragment_program_shadow, GL_ARB_fragment_shader,
GL_ARB_framebuffer_object, GL_ARB_half_float_pixel,
alick 于 2010-12-29 17:06:26发表:
查看当前3D驱动,可以[code]glxinfo |head -n 40[/code]
alick 于 2010-12-29 17:03:41发表:
[i=s] 本帖最后由 alick 于 2010-12-29 17:08 编辑 [/i]
应该是都识别了。
热切换参考这里http://ubuntuforums.org/showthread.php?t=1495123&page=3
英文的,我把它简单注释在下面:[code]
#查看当前值
root@BOX:~# cat /sys/kernel/debug/vgaswitcheroo/switch
0:+:Pwr:0000:00:02.0
1: :Pwr:0000:01:00.0
root@BOX:~#[/code]两个pwr表示都工作,第0个里面有+表示当前在使用。[code]
# 切换
root@BOX:~# echo DDIS > /sys/kernel/debug/vgaswitcheroo/switch
root@BOX:~# cat /sys/kernel/debug/vgaswitcheroo/switch
0: :Off:0000:00:02.0
1:+:Pwr:0000:01:00.0
# 查看dmesg信息
root@BOX:~# dmesg | tail -2
[17815.585947] fbcon: Remapping primary device, fb1, to tty 1-63
[17816.075748] i915: switched off
# 切换回去
root@BOX:~# echo DIGD > /sys/kernel/debug/vgaswitcheroo/switch
root@BOX:~# dmesg | tail -2
[17894.401107] fbcon: Remapping primary device, fb0, to tty 1-63
[17894.401262] radeon: switched off
root@BOX:~# cat /sys/kernel/debug/vgaswitcheroo/switch
0:+:Pwr:0000:00:02.0
1: :Off:0000:01:00.0
root@BOX:~#[/code]
wujing89x 于 2010-12-29 09:42:53发表:
我的是笔记本
nxzcc 于 2010-12-29 08:51:35发表:
不是独立的插上就默认禁集成的吗
wujing89x 于 2010-12-29 08:10:48发表:
[i=s] 本帖最后由 wujing89x 于 2010-12-29 08:16 编辑 [/i]
[root@wujing wujing]# lspci|grep -i vga
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 18)
01:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce 310M] (rev a2)
那位大哥给我帮忙看下是什么意思。
我怎么感觉两个显卡都识别。
那我现在是那个显卡在运行?
能不能自己控制独立和集成显卡切换?
alick 于 2010-12-28 22:50:18发表:
[code]lspci|grep -i vga
[/code]看看系统识别了哪个显卡?
shenhao0129 于 2010-12-28 22:48:17发表:
lspci|grep VGA
naruto01 于 2010-12-28 22:10:57发表:
我感觉没必要把Linux当成桌面,莫喷