Gentoo Archives: gentoo-user

From: Stefano Crocco <stefano.crocco@×××××.it>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] advice on a new laptop
Date: Wed, 15 Feb 2017 18:14:35
Message-Id: 4011338.gAbStuCiFd@linux
In Reply to: Re: [gentoo-user] advice on a new laptop by Stefano Crocco
1 On Saturday, 4 February 2017 12:20:06 CET Stefano Crocco wrote:
2 > On Thursday, 2 February 2017 09:28:05 CET Stefano Crocco wrote:
3 > > Hello to everyone,
4 > > I need to buy a new laptop and I'd like some advice. Currently, I'm
5 > > thinking of buying an ASUS UX310UA-GL547T. Has anyone tried running
6 > > Gentoo on it? If so, how did it go? A Google search only lead me to a
7 > > page hinting it should work with linux, but didn't give any detail.
8 > >
9 > > Alternatively, which other model would you suggest with similar
10 > > specifications? The ASUS UX310UA-GL547T has the following characteristics:
11 > >
12 > > Screen: 13.3" - 1920x1080 Pixel - Full HD, LED, No Glare
13 > > CPU: Intel® CoreTM i3-7100U (2.4 GHZ)
14 > > RAM: 4 GB DDR4
15 > > Max RAM: 16 GB
16 > > Video Card: Intel® HD Graphics 620
17 > > Video OUT: HDMI
18 > > Hard Disk: 500 GB SATA 5400 rpm
19 > > Wireless: WiFi 802.11n (a/c)
20 > > Intel® Wireless Display (WiDi)
21 > > Bluetooth: Bluetooth 4.1
22 > > USB slots: 2x USB 2.0 - 1x USB 3.0 - 1x USB 3.1
23 > > Card Reader: SD/MMC
24 > > Size and weight: 32.3x22.3x1.84~1.90 cm / 1.45 Kg
25 > >
26 > > The price should be less than 800€/$.
27 > >
28 > > Thanks in advance
29 > >
30 > > Stefano
31 >
32 > Thanks to everyone who answered. I've ordered the laptop and it should
33 > arrive next week. I'll let you know how it goes.
34 >
35 > Stefano
36
37 All right. The laptop has arrived last Thursday (with memory expanded to 8GB)
38 and, after a bit of work during the week-end I succeeded in installing a fully
39 working ~amd64 Gentoo on it, with everything I need working perfectly (as far
40 as I can tell). Unless some something unexpected come out in the future, I'm
41 quite happy with this laptop.
42
43 In case anybody is interested, here are some details on what works and what
44 doesn't or I haven't tested. I'll also include a copy of my .config if someone
45 finds it useful (it may contain unneeded stuff, but it works).
46
47 What works:
48 * video card: works flawlessly with Plasma 5 and the default effects enabled.
49 I had some trouble in finding out which firmware and use flags enabled. In the
50 end, I enabled the i965 and intel VIDEO_CARDS and everything seems to work (I
51 didn't try anything graphics intensive, however)
52 * wireless: this is the first wireless card which worked without problems from
53 the installation medium: I created a wpa_supplicant.conf file with the network
54 settings, run /etc/init.d/wpa_supplicant restart and the connection was there.
55 After that, I only needed to find out the correct driver and firmware and
56 insert them in the kernel
57 * touchpad: this gave me some problems because I couldn't find out the correct
58 options to insert in the kernel. However, after a lot of attempts, checking
59 everything related to 12C which seemed even remotely connected with a
60 touchpad, it started working. Most likely, currently my kernel contains some
61 unneeded options, but I don't have the time to find out which they are
62 * sound card: this too required a bit of work because I didn't know which
63 codec I should use. At last, trying everyone, I found out the correct one was
64 SND_HDA_CODEC_HDMI
65 * suspend and hibernate: both work correctly (regarding hibernate, I have set
66 up a swap partition of 16GB: I don't know whether it's too much, but as I have
67 space to spare, I don't care)
68
69 What doesn't work so well:
70 * bluetooth: the adapter is recognized. However, following the instructions in
71 the Gentoo wiki [1] I couldn't connect with my smartphone: everything went
72 well up to the "connect" command, then I got a "can't connect" error. I tried
73 doing the same from Bluedevil (the KDE bluetooth manager), with the same
74 result: however, I could send files between laptop and smartphone. I don't
75 know whether this behavior is expected with such a device, since I almost
76 never use bluetooth.
77
78 What I haven't tested:
79 * card reader
80 * wireless display.
81
82 One of the issues which worried me more was setting up correctly an UEFI
83 system. I don't have much experience with such systems so, among the various
84 options I found online, I chose Refind as it seemed the easiest one. I
85 proceeded this way:
86 * from the UEFI screen, I disabled Secure Boot and UEFI boot (I wasn't sure
87 the Gentoo installation stick would boot from UEFI)
88 * I booted from the Gentoo installation stick and setup everything according
89 to the installation handbook, except for the Grub2 part. According to the
90 Refind instructions [2], I enabled the EFI stub in the kernel
91 * I copied the kernel to the usual /boot partition (with ext2 filesystem;
92 ext3, ext4 or other filesystems supported by Refind would have worked as well)
93 * from Windows, I installed Refind [3], following to the letter the
94 instructions given in [4]. Here, the author warns about issues with Windows
95 10, but, luckily, I didn't have any
96 * I installed the kernel in the boot partition as usual
97 * I created a custom stanza in refind.conf, as described in [5] (I could have
98 done without it if I had given the kernel a standard name, instead of
99 linux-4.9.9). The custom stanza is simply:
100 menuentry Gentoo {
101 volume "Linux boot"
102 loader "linux-4.9.9"
103 ostype "Linux"
104 options "root=/dev/sda7 ro"
105 }
106
107 This produces a menu with two entries: windows (detected automatically) and
108 Gentoo.
109
110 Thanks again to everyone who offered advice
111
112 Stefano
113
114 [1] https://wiki.gentoo.org/wiki/Bluetooth
115 [2] http://www.rodsbooks.com/refind/linux.html#easiest
116 [3] http://www.rodsbooks.com/refind/
117 [4] http://www.rodsbooks.com/refind/installing.html#windows
118 [5] http://www.rodsbooks.com/refind/configfile.html#stanzas

Attachments

File name MIME type
config text/plain