Configurer sa carte vidéo optimus sandy bridge

De Centre de Ressources Numériques - Labomedia
Révision de 25 septembre 2012 à 16:19 par Oli44 (discussion | contributions) (Une carte hybride intel / nvidia)

(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à : navigation, rechercher

Une carte hybride intel / nvidia

Ce système à la base pensé pour économiser de l'energie en fait dépenser pas mal aux linuxiens depuis que nvidia a annoncé que les drivers linux pour cette carte hybride attendraient...

L'un des problèmes récurrent est l'activation/désactivation de la puce graphique Intel ou de la carte graphique nVidia. Le BIOS de certains PC ne le permettant pas (Schenker XMG p501, Clevo p105...), ce n'est pas la peine d'essayer tant que cette fonctionnalité n'est pas accessible.

Identifier sa carte

Taper dans un terminal :

sudo lshw -C video

 *-display               
      description: VGA compatible controller
      product: nVidia Corporation
      vendor: nVidia Corporation
      physical id: 0
      bus info: pci@0000:01:00.0
      version: a1
      width: 64 bits
      clock: 33MHz
      capabilities: pm msi pciexpress bus_master cap_list rom
      configuration: driver=nvidia latency=0
      resources: irq:16 memory:db000000-dbffffff memory:c0000000-cfffffff(prefetchable) memory:d0000000-d1ffffff(prefetchable) ioport:d000(size=128) memory:dc000000-dc07ffff(prefetchable)
 *-display UNCLAIMED
      description: VGA compatible controller
      product: Intel Corporation
      vendor: Intel Corporation
      physical id: 2
      bus info: pci@0000:00:02.0
      version: 09
      width: 64 bits
      clock: 33MHz
      capabilities: msi pm bus_master cap_list
      configuration: latency=0
      resources: memory:dc400000-dc7fffff memory:b0000000-bfffffff(prefetchable) ioport:e000(size=64)

Mettre à jour son système

Noyau

La partie Intel de la carte graphique commence à être bien supportée à partir du noyau 2.6.35

Pour mettre à jour son noyau, notamment sous ubuntu 10.04 lucid, quelques ressources :

  • Activer dans synaptic enable the "lucid-proposed" repository. Le noyau 2.6.38 semble bien marcher
  • Attention, désintaller le driver "nouveau" (driver nvidia libre) à désinstaller car conflit dans mon cas
 sudo apt-get remove --purge xserver-xorg-video-nouveau

et le blacklister :

 sudo gedit /etc/modprobe.d/blacklist.conf

ajouter dans le fichier :

 blacklist nouveau

Drivers graphiques

Plusieurs sources à comparer...

ppa:ubuntu-x-swat/x-updates
ppa:xorg-edgers/ppa

Intel

Nvidia

a priori pas nécessaire de passer par là

uname -a #pour connaitre son noyau
sudo apt-get install linux-headers-votrenumdenoyau #pour avoir les en-têtes du noyau pour compil
Ctrl+alt+F3 #Basculer sur une fenetre console 
sudo /etc/init.d/gmd stop #Arrêter le serveur X
cd ..... #Aller là où vous avez mis le driver téléchargé
sudo chmod +x NVIDIA*    #Pour le rendre executable
sudo sh NVIDIA.............run   #Pour le lancer

répondre oui à la licence et non pour la génération d'un fichier de config (sinon votre ordi essayera de booter sur la carte nvidia)

Installer un système qui permette de solliciter la carte NVIDIA

Suite à fork, il y a plusieurs projets pour faire marcher la carte nvidia avec le système optimus, le premier est un fork du MrMee original, le deuxième est issu de la première team mais a pris un autre nom

Panneau de configuration nvidia

Une fois Bumblebee installé, tenter :

optirun nvidia-settings -c :8

Pure Data vs Optimus

optirun pdextended

Sortie du print de Gem : GEM: Direct Rendering enabled! GEM: GLEW version 1.5.1 GEM: Start rendering GEM information


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


window state: 1 topmost: 0 profile: 0 buffer: 2 stereo: 0 full screen: 0 width: 500, height 500 offset: 0+0 frame rate: 20.000000 red: 8 green: 8 blue: 8 max texture: 16384 lighting 0 rectangle texturing: 2 direct yuv texturing: 0

Caractéristiques des cartes graphiques

 sudo lshw -C video

 *-display               
      description: VGA compatible controller
      product: nVidia Corporation
      vendor: nVidia Corporation
      physical id: 0
      bus info: pci@0000:01:00.0
      version: a1
      width: 64 bits
      clock: 33MHz
      capabilities: pm msi pciexpress bus_master cap_list rom
      configuration: driver=nvidia latency=0
      resources: irq:16 memory:db000000-dbffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:d000(size=128) memory:dc000000-dc07ffff
 *-display
      description: VGA compatible controller
      product: Intel Corporation
      vendor: Intel Corporation
      physical id: 2
      bus info: pci@0000:00:02.0
      version: 09
      width: 64 bits
      clock: 33MHz
      capabilities: msi pm bus_master cap_list rom
      configuration: driver=i915 latency=0
      resources: irq:16 memory:dc400000-dc7fffff memory:b0000000-bfffffff ioport:e000(size=64)

Caractéristiques opengl video

 dpkg -l | grep OpenGL

ii compiz 1:0.8.4-0ubuntu15.3 OpenGL window and compositing manager ii compiz-core 1:0.8.4-0ubuntu15.3 OpenGL window and compositing manager ii compiz-gnome 1:0.8.4-0ubuntu15.3 OpenGL window and compositing manager - GNOM ii compiz-plugins 1:0.8.4-0ubuntu15.3 OpenGL window and compositing manager - plug ii freeglut3 2.6.0-0ubuntu2 OpenGL Utility Toolkit ii libftgl2 2.1.3~rc5-3 library to render text in OpenGL using FreeT ii libgl1-mesa-dri 7.7.1-1ubuntu3 A free implementation of the OpenGL API -- D ii libgl1-mesa-glx 7.7.1-1ubuntu3 A free implementation of the OpenGL API -- G ii libglitz-glx1 0.5.6-1build1 Glitz OpenGL library GLX backend ii libglitz1 0.5.6-1build1 Glitz OpenGL image compositing library ii libglu1-mesa 7.7.1-1ubuntu3 The OpenGL utility library (GLU) ii libqt4-opengl 4:4.6.2-0ubuntu5.3 Qt 4 OpenGL module ii virtualgl 2.2.90-1~lucidppa7 Toolkit for displaying OpenGL applications t

 dpkg -l | grep bumblebee

ii bumblebee 2.4.1-1~lucidppa1 nVidia Optimus support

 dpkg -l | grep nvidia

ii nvidia-173-modaliases 173.14.27-0ubuntu1 Modaliases for the NVIDIA binary X.Org drive ii nvidia-96-modaliases 96.43.18-0ubuntu1 Modaliases for the NVIDIA binary X.Org drive ii nvidia-common 0.2.23 Find obsolete NVIDIA drivers ii nvidia-current 285.05.09-0ubuntu1~lucid~xup1 NVIDIA binary Xorg driver, kernel module and ii nvidia-current-modaliases 285.05.09-0ubuntu1~lucid~xup1 Modaliases for the NVIDIA binary X.Org drive ii nvidia-settings 285.05.09-0ubuntu1~lucid~xup1 Tool of configuring the NVIDIA graphics driv