📜 ⬆️ ⬇️

How to make friends gma3600 (intel cedar trail) and linux in a week



As a gift, my father was bought asus x101ch . At first glance, a chic netbook, especially in terms of price-quality. In Euroset, I gave him a modest 7,500 rubles (it was in winter). Most of all I was attracted by the matte display, dual-core 1.6Ghz Atom and the stated ability to view Full HD (1080p), which had a greater impact on choosing it as a replacement for the old eee pc 900. Blinded by the positive experience gained from using the Intel Atom on a nettop with Debian 6, and to all of the above, I forgot the most important thing: to study the issue of the performance of this device in Linux before the purchase, for which later I paid ...


')

The first attempt to install Linux or "Try Ubuntu"


Happily freeing the netbook from packaging, once again embarked on an already familiar operation - installing Ubuntu 12.04 LTS on a new device. But after loading X's in the live session, I was upset by the low resolution and the inability to change it (800x600, the netbook has 1024x600). It was felt that everything was drawn by software, and behind all this was vesa driver. In addition, there was a very strange behavior of the mouse: it disappeared, then appeared again - which after a few seconds began to annoy. Installing on the disk did not change the situation. Everything indicated that the problem lies in the video driver.

After a day of yaw across the expanses of the Internet loomed approximately the following picture:
  1. Theme dedicated to gma3600. 42 pages. The third most popular on the Russian-language forum Ubuntu in the section Graphic equipment
  2. Lack of 3d as such (In any OS).
  3. The existence of a proprietary driver with access to a hardware decoder (video acceleration api).
  4. Intel netbook users with the gma3600 "sympathize . " But can not help with anything (does not want?).
  5. Availability of Linux (MeeGo) for Cedar Trail. Immediately note that you can forget about Win8.
  6. On top of this, there are problems with sleeping in Linux. And also does not work HDMI, VGA and a number of keys Fn.
  7. The graphics chip itself is the brainchild of Imagination Technologies , namely, PowerVR SGX545 , which in gma3600 is the “logical” continuation of gma500. The latter, in turn, has a very bad reputation not only among Linuxoids.


At that time, this whole set has already made me think about the feasibility of buying and sponsoring vendors that manufacture hardware with such support. But there was nothing to do, it was necessary to bring into operation the netbook, on which even the preinstalled Win7 worked obscenely. The gift and the accompanying positive emotions of the giver and the receiving party were overshadowed. Attempts to install a proprietary driver from ppa led to a black screen. On Ubuntu 12.10, in principle, the X did not load after installation. Backing up the 3.7.1 kernel in Ubuntu LTS brought some success - normal screen resolution, and as a bonus - a non-working wifi driver. On the third day after the purchase, I realized that resistance was useless, and decided to install MeeGo.

Two day battle with MeeGo

The link from the Intel site was downloaded image MeeGo Cedar Trail and recorded (as is) on the USB flash drive. The netbook was loaded with normal resolution, and MeeGo smartly showed animations of transitions in the desktop menu and applications. Earned a dream and a number of Fn. I was elated: the overall impression was significantly better than the work of the pre-installed starter.



But happiness was short-lived. Literally an hour after installation, the little man happily announced the presence of updates, which I, without thinking twice, installed. The result did not take long to wait ... The wi-fi fell off, and at once, which was very alarming. Rebooted from the flash drive and comparing the images of the kernel, he suggested that its update was the cause. I rearranged, turned off the updates, guided by the principle “works - don't touch”, and gave my father to use.

In less than an hour, my father told about the strange behavior of the system: installing mc (midnight commander) is similar to updating wi-fi, although the installation itself did not pull any packages, much less library updates. Having played enough with the reinstallation of the distribution kit, I discovered an inexplicable, fatal and terrible bug - installing any (yes any) package led to the same problem. The package system fell under suspicion, but since this is rpm in MeeGo, the only logical explanation for the developers of the distribution could be the only logical explanation. To understand this problem, there was no longer any desire or strength. The next day did not bring a single clue in the case of finding a problem, and the nerves were more expensive.

Climax


At the end of the week I began to prepare to return the netbook back to the store. This did not bode well, since, as you know, a netbook is a sophisticated electrical product and is on the list of non-food products of good quality that can not be returned or exchanged , and the only way to return it without "paying the seller" is to find a significant drawback. , for example: manufacturing defect or spontaneous shutdown.

Packing everything in a box and printing excerpts from the Opp for the upcoming battles with the seller and, possibly, the store manager, was about to leave the house. But something else resisted at heart, and before leaving, I once again decided to try my luck.

Once again I discovered Chromium in order to find something useful that passed my eyes for a week of vain searches. Literally a minute later, I came across an article that had not yet been read before, a quick reading of which gave me hope. Cardinally from a dozen other howto, it was distinguished by one line, which will be discussed later.

Install the Xorg driver


Instruments and materials: Ubuntu 04/12/1 i386 or Mint 13 (direct heir of the first), a device with an atom i386 processor and a gma3600 graphics subsystem.

Working process:
The first thing you need is the distribution itself. Best option: download the latest stable release from the office. site.

Install as usual. Both in the live session and after installation there will be a low resolution. This is normal".

After installation, update the list of packages:

sudo apt-get update 


All driver installation manuals state that the cedarview kernel module is not compatible with pae kernels. Do not try to install the driver on the pae kernel. Find out what you have:

 uname -r 


If you have a pae kernel (this is indicated by the suffix "-pae" in the output of uname -r), install the normal one and the drivers for it (required for building the kernel module of the proprietary driver):

 sudo apt-get install linux-headers-generic linux-image-generic 


We demolish the pae core, we demolish it completely , otherwise we get a black screen:

 sudo apt-get purge linux-headers-generic-pae linux-image-generic-pae 


It is the remaining settings from pae kernels, which are not removed via apt-get remove, became a stumbling block for a whole week.

After installing / removing the kernel, grub2 should rescan partitions on the presence of other operating systems and new kernels. If this does not happen, command:

 sudo update-grub2 


Install gdm at the same time (some users have problems with the xorg configuration for lightgdm):

 sudo apt-get install gdm 


During the installation a question will be asked: which display manager to use - choose gdm.

Reboot.

Driver installation

Things are easy - it remains to install the driver. Most likely after reboot, jockey (Additional drivers) will start, which will offer to install cedarview-drm, but this is not all that is required for proper operation:

 sudo apt-get install cedarview-graphics-drivers cedarview-drm 


The installation lasts a long time, about 10-15 minutes, since the kernel module is compiled (apparently in one stream). During the installation, the screen may turn off, and after that there will be a colored porridge on the screen. The main thing - do not turn off the netbook prematurely.

After successful installation of the driver, the resolution should become normal, and the exit from sleep mode and brightness control should also work properly.

If, after rebooting, the X does not start, open tty1 Ctrl + Alt + F1, log in with your user and edit the grub settings (on x101ch this step was not required):

 nano /etc/default/grub 


Find the line:

 GRUB_CMDLINE_LINUX="" 


and add between quotes:

 video=LVDS-1:d 


Update grub2 and reboot:

 update-grub2 reboot 


You can also change the kernel boot configuration for one launch by pressing e at boot time and adding your options after “quiet splash”.

Hardware accelerated video for dessert


When buying a netbook or another device with gma3600, you most likely noticed the tempting reklamku: "Playback with Full HD 1080p resolution". Already, the netbook is capable of losing 720p, but decoding will be done programmatically, which has a bad effect on the processor load and battery life. For example, mplayer can use all four threads, loading each of the two cores by ~ 80%. But why? There is a special microprocessor built into the graphics system and allowing to reduce the load when playing 720p to 3-4%, and at 1080p to keep the processor within 10%. To activate it, you need to install an additional library that implements vaapi to the hardware decoder.

Install:

 sudo apt-get install libva-cedarview-vaapi-driver 


You will also need a special assembly mplayer-vaapi:

 sudo apt-add-repository ppa:sander-vangrieken/vaapi sudo apt-get update sudo apt-get install mplayer-vaapi 


Well, gnome-mplayer GUI:

 sudo apt-get install gnome-mplayer 


Finishing touch

Open Gnome Mplayer, go to Edit -> Preferences, Mplayer tab and add in the "Extra Options to Mplayer" field:

 -vo vaapi -va vaapi 


Now 1080p video with your favorite cats hardware accelerated!

Summing up, it is safe to say that Intel support, both Linux and Windows, is not as good as it is painted. From an unverified source, it is known that Intel apparently realized that they specifically pierced with gma3600 / gma3650, and decided that the next generation of Intel Atom would have trimmed graphics with i3 and i5. Still, the situation with gma3600 is much better than with gma500, five years ago.

P.S. It is important to note that mplayer-vaapi conflicts with mplayer2 and installs several packages for working with vaapi. It is less stable, but allows you to use the resources of the graphics subsystem.

Another repository was found with the source code cedarview. It is relevant, and the last commit in it dates back to the twentieth of January of this year. Judging by commits, one can judge that support for kernels 3.5.0 and 3.7.2 has been added. The codebase is based on cedarview 1.0.3 from Intel, when only 1.0.2 is present in Ubuntu 12.04. I myself have not tried to collect it, but among the obvious advantages can be noted the correction of memory leaks in vaapi. In my case, the 2-hour watch FullHD with driver 1.0.2 (from the repository) did not detect a leak.

Upd:
The kernel shipped with Ubuntu 13.04 now has a modified community driver. He is much better at showing 2d, but he will have to accept the lack of vaapi.

Source: https://habr.com/ru/post/181790/


All Articles