> For the complete documentation index, see [llms.txt](https://bananapi.gitbook.io/bpi-m3/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bananapi.gitbook.io/bpi-m3/zh/gpuforkernel34.md).

# GPU for kernel 3.4

1,How to enable GPU on ubuntu 15.10

download link:

<https://drive.google.com/file/d/0B4PAo2nW2KfnVFBYNzB2N1ZKU00/view?usp=sharing>

step 1: dpkg -i linux-bananapi-bpi-m3-kernel3\_1.2.6\_armhf.deb

step 2: bpi-bootsel /usr/lib/u-boot/bananapi/bpi-m3/BPI\_M3\_720P.img.gz or bpi-bootsel /usr/lib/u-boot/bananapi/bpi-m3/BPI\_M3\_1080P.img.gz

step 3: dpkg -i xserver-xorg-video-gpu-bananapi-bpi-m3\_1.0-15.10\_armhf.deb

step 4: reboot

2,how to check gpu running

```
root@bananapi:~# ps ax | grep X                                                 
  629 tty7     Ss+    0:09 /usr/local/XSGX/bin/X -verbose -config /usr/local/XSG
X/etc/xorg.conf :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 
-novtswitch                                                                     
 1449 ttyS0    S+     0:00 grep --color=auto X                                  
root@bananapi:~#
```

how to disable/enable gpu

```
root@bananapi:/usr/share/lightdm/lightdm.conf.d# cat 55-xserver-command-pvr.conf
[Seat:*]                                                                        
# Dump core                                                                     
#xserver-command=X -core                                                        
#xserver-command=/usr/local/XSGX/bin/X -verbose -config /usr/local/XSGX/etc/xorg.
conf                                                                            
root@bananapi:/usr/share/lightdm/lightdm.conf.d#
```
