Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo running wonderfully on Lenovo Yoga S730
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
james.h.bates
n00b
n00b


Joined: 11 Jul 2013
Posts: 12

PostPosted: Tue Sep 17, 2019 7:27 pm    Post subject: Gentoo running wonderfully on Lenovo Yoga S730 Reply with quote

To whomever might be attemting to run Gentoo on the same or similar hardware. There is a Gentoo wiki page about the laptop, although it is incomplete. Perhaps someone at Gentoo might like to complete it, using the information below.

Hardware info:

Code:
james@daedalus:~$ hwinfo --short
cpu:                                                           
                       Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz, 2366 MHz
                       Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz, 2393 MHz
                       Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz, 2350 MHz
                       Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz, 2362 MHz
                       Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz, 2400 MHz
                       Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz, 2417 MHz
                       Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz, 2387 MHz
                       Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz, 2411 MHz
keyboard:
  /dev/input/event4    AT Translated Set 2 keyboard
mouse:
  /dev/input/mice      MSFT0001:00 06CB:CD3E Touchpad
monitor:
                       AUO LCD Monitor
graphics card:
                       Intel VGA compatible controller
sound:
                       Intel Audio device
storage:
                       Non-Volatile memory controller
network:
  wlp110s0             Intel WLAN controller
network interface:
  lo                   Loopback network interface
  wlp110s0             Ethernet network interface
disk:
  /dev/nvme0n1         Disk
partition:
  /dev/nvme0n1p1       Partition
  /dev/nvme0n1p2       Partition
  /dev/nvme0n1p3       Partition
  /dev/nvme0n1p4       Partition
  /dev/nvme0n1p5       Partition
usb controller:
                       Intel USB Controller
bios:
                       BIOS
bridge:
                       Intel PCI bridge
                       Intel ISA bridge
                       Intel PCI bridge
                       Intel Host bridge
                       Intel PCI bridge
                       Intel PCI bridge
                       Intel PCI bridge
hub:
                       Linux Foundation 2.0 root hub
                       Linux Foundation 3.0 root hub
memory:
                       Main Memory
bluetooth:
                       Intel Bluetooth Device
unknown:
                       FPU
                       DMA controller
                       PIC
                       Keyboard controller
                       Intel Sky Lake Gaussian Mixture Model
                       Intel Signal processing controller
                       Intel Communication controller
                       Intel Serial bus controller
                       Intel Signal processing controller
                       Intel Serial bus controller
                       Intel RAM memory
                       Intel SMBus
                       Generic Goodix FingerPrint Device
                       IMC Networks Integrated Camera

Code:
james@daedalus:~$ lspci
00:00.0 Host bridge: Intel Corporation Device 3e34 (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (Whiskey Lake)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 0b)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Point-LP Thermal Controller (rev 30)
00:14.0 USB controller: Intel Corporation Cannon Point-LP USB 3.1 xHCI Controller (rev 30)
00:14.2 RAM memory: Intel Corporation Cannon Point-LP Shared SRAM (rev 30)
00:15.0 Serial bus controller [0c80]: Intel Corporation Cannon Point-LP Serial IO I2C Controller #0 (rev 30)
00:16.0 Communication controller: Intel Corporation Cannon Point-LP MEI Controller #1 (rev 30)
00:1c.0 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port #1 (rev f0)
00:1c.4 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port #5 (rev f0)
00:1d.0 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port #9 (rev f0)
00:1d.1 PCI bridge: Intel Corporation Device 9db1 (rev f0)
00:1d.4 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port #13 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Cannon Point-LP LPC Controller (rev 30)
00:1f.3 Audio device: Intel Corporation Cannon Point-LP High Definition Audio Controller (rev 30)
00:1f.4 SMBus: Intel Corporation Cannon Point-LP SMBus Controller (rev 30)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Point-LP SPI Controller (rev 30)
6e:00.0 Network controller: Intel Corporation Dual Band Wireless-AC 3165 Plus Bluetooth (rev 99)
6f:00.0 Non-Volatile memory controller: SK hynix Device 1527

Code:
james@daedalus:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 27c6:5584 
Bus 001 Device 003: ID 8087:0a2a Intel Corp.
Bus 001 Device 002: ID 13d3:56b2 IMC Networks
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


The machine came with Windows pre-installed. Since I wanted to keep a small Windows partition, I used a Windows tool to shrink its partition and make (lots of) room for Gentoo.

The machine boots in EFI only as far as I can tell. In order to boot an attached USB device, I had to first disable "secure boot" in the firmware. To access the firmware, you shouldn't turn the laptop on using the normal on/off button, but instead use a sharp pointy object to depress a button hidden deep behind a small hole on the righthand edge, as shown here. From there, enter the boot settings, and disable secure boot. Reboot using the same tiny hole, and now select an external USB device containing the install image.

For whatever reason, neither the Gentoo minimal install ISO, nor the Gentoo Live ISO are able to boot in EFI on this machine. Both hang during kernel boot. However, SystemRescueCD worked just fine. So I used that to boot, then followed the standard Gentoo install handbook. The internal HD is an nvme device, prepartitioned using GPT. I added the Linux partitions, and followed the rest of the Handbook without any issues.

I built a custom kernel, and made absolutely certain it had nvme and iwlwifi support, as those are needed to be able to continue installation once booting into Gentoo. I use grub2 as boot manager, and set it as the default using efibootmgr:

Code:
james@daedalus:~$ efibootmgr
BootCurrent: 0001
Timeout: 2 seconds
BootOrder: 0001,0000,0013,0014,0015,0016,0017,0018
Boot0000* Windows Boot Manager
Boot0001* gentoo
Boot0010  Setup
Boot0011  Boot Menu
Boot0012  Diagnostic Splash
Boot0013* USB FDD:
Boot0014* NVMe: HFS512GD9TNG-62A0A                     
Boot0015* USB HDD: NORELSYS 1081
Boot0016* USB CD:
Boot0017* USB LAN:
Boot0018* USB HDD: WD Elements 25A2
james@daedalus:~$ sudo efibootmgr -o 0001


After that, no more need to fiddle around with the pointy object: the normal on/off switch boots straight into grub. I have sys-boot/os-prober installed, which adds an entry for Windows to the grub menu.

I have pretty much all the hardware working: nvme internal disk, sound, microphone, graphics (I use gnome3), wifi, webcam, keyboard, touchpad, external USB devices (mouse, disks, an astronomy camera). Haven't tried bluetooth since I never use it. I am using kernel gentoo-sources-5.2.11, and I have linux-firmware installed (honestly I don't know if it's needed. Maybe the Wifi might need it)

To get the touchpad working at all, you need, as the wiki describes, designware I2C and LPSS enabled in the kernel. In addition, to have it recognized as an actual touchpad (with two-finger scrolling etc), you need hid-multitouch enabled in the kernel.
Sound requires hda-intel and the realtek codec. The webcam needs uvcvideo (and v4l obviously). Graphics are intel i915/i965

Here are some relevant kernel messages:
Code:
james@daedalus:~$ dmesg | grep nvme
[    0.920243] nvme nvme0: pci function 0000:6f:00.0
[    1.134252] nvme nvme0: 8/0/0 default/read/poll queues
[    1.136749]  nvme0n1: p1 p2 p3 p4 p5
[    2.358044] dracut: luksOpen /dev/nvme0n1p5 luks-cddfa615-c393-47b7-80ae-b278ea139752 
james@daedalus:~$ dmesg | grep i2c
[    9.060290] i2c_hid i2c-MSFT0001:00: i2c-MSFT0001:00 supply vdd not found, using dummy regulator
[    9.060302] i2c_hid i2c-MSFT0001:00: i2c-MSFT0001:00 supply vddl not found, using dummy regulator
[    9.085723] input: MSFT0001:00 06CB:CD3E Mouse as /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-8/i2c-MSFT0001:00/0018:06CB:CD3E.0001/input/input12
[    9.085861] input: MSFT0001:00 06CB:CD3E Touchpad as /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-8/i2c-MSFT0001:00/0018:06CB:CD3E.0001/input/input13
[    9.085990] hid-generic 0018:06CB:CD3E.0001: input,hidraw0: I2C HID v1.00 Mouse [MSFT0001:00 06CB:CD3E] on i2c-MSFT0001:00
[    9.135548] input: MSFT0001:00 06CB:CD3E Touchpad as /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-8/i2c-MSFT0001:00/0018:06CB:CD3E.0001/input/input16
[    9.135871] hid-multitouch 0018:06CB:CD3E.0001: input,hidraw0: I2C HID v1.00 Mouse [MSFT0001:00 06CB:CD3E] on i2c-MSFT0001:00
james@daedalus:~$ dmesg | grep input
[    0.839251] input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input0
[    0.842470] input: Sleep Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1
[    0.843464] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
[    0.919772] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input3
[    0.944594] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input4
[    8.938026] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    8.991058] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input5
[    8.991108] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input6
[    8.991184] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input7
[    8.991241] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input8
[    8.991303] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input9
[    8.991382] input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input10
[    8.991464] input: HDA Intel PCH HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input11
[    9.085723] input: MSFT0001:00 06CB:CD3E Mouse as /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-8/i2c-MSFT0001:00/0018:06CB:CD3E.0001/input/input12
[    9.085861] input: MSFT0001:00 06CB:CD3E Touchpad as /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-8/i2c-MSFT0001:00/0018:06CB:CD3E.0001/input/input13
[    9.085990] hid-generic 0018:06CB:CD3E.0001: input,hidraw0: I2C HID v1.00 Mouse [MSFT0001:00 06CB:CD3E] on i2c-MSFT0001:00
[    9.135548] input: MSFT0001:00 06CB:CD3E Touchpad as /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-8/i2c-MSFT0001:00/0018:06CB:CD3E.0001/input/input16
[    9.135871] hid-multitouch 0018:06CB:CD3E.0001: input,hidraw0: I2C HID v1.00 Mouse [MSFT0001:00 06CB:CD3E] on i2c-MSFT0001:00
[    9.859427] input: Integrated Camera: Integrated C as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/input/input18
[   18.299837] rfkill: input handler disabled
james@daedalus:~$ dmesg | grep usb
[    0.640491] usbcore: registered new interface driver usbfs
[    0.640495] usbcore: registered new interface driver hub
[    0.640553] usbcore: registered new device driver usb
[    0.924540] usbcore: registered new interface driver usbhid
[    0.924541] usbhid: USB HID core driver
[    8.826876] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    8.826878] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.826880] usb usb1: Product: xHCI Host Controller
[    8.826882] usb usb1: Manufacturer: Linux 5.2.11-gentoo xhci-hcd
[    8.826883] usb usb1: SerialNumber: 0000:00:14.0
[    8.853975] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.02
[    8.853978] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.853980] usb usb2: Product: xHCI Host Controller
[    8.853981] usb usb2: Manufacturer: Linux 5.2.11-gentoo xhci-hcd
[    8.853983] usb usb2: SerialNumber: 0000:00:14.0
[    8.855122] usb: port power management may be unreliable
[    9.173486] usb 1-5: new high-speed USB device number 2 using xhci_hcd
[    9.310859] usb 1-5: New USB device found, idVendor=13d3, idProduct=56b2, bcdDevice=17.11
[    9.310860] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    9.310861] usb 1-5: Product: Integrated Camera
[    9.310861] usb 1-5: Manufacturer: SunplusIT Inc
[    9.426629] usb 1-7: new full-speed USB device number 3 using xhci_hcd
[    9.553393] usb 1-7: New USB device found, idVendor=8087, idProduct=0a2a, bcdDevice= 0.01
[    9.553395] usb 1-7: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    9.668532] usb 1-9: new high-speed USB device number 4 using xhci_hcd
[    9.802152] usb 1-9: New USB device found, idVendor=27c6, idProduct=5584, bcdDevice= 1.00
[    9.802154] usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    9.802156] usb 1-9: Product: Goodix FingerPrint Device
[    9.802157] usb 1-9: Manufacturer: Generic
[    9.859427] input: Integrated Camera: Integrated C as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/input/input18
[    9.859493] usbcore: registered new interface driver uvcvideo
james@daedalus:~$ dmesg | grep wifi
[    8.880835] iwlwifi 0000:6e:00.0: enabling device (0000 -> 0002)
[    8.908484] iwlwifi 0000:6e:00.0: Found debug destination: EXTERNAL_DRAM
[    8.908486] iwlwifi 0000:6e:00.0: Found debug configuration: 0
[    8.908690] iwlwifi 0000:6e:00.0: loaded firmware version 29.1654887522.0 op_mode iwlmvm
[    8.957287] iwlwifi 0000:6e:00.0: Detected Intel(R) Dual Band Wireless AC 3165, REV=0x210
[    8.970973] iwlwifi 0000:6e:00.0: Applying debug destination EXTERNAL_DRAM
[    8.971207] iwlwifi 0000:6e:00.0: Allocated 0x00400000 bytes for firmware monitor.
[    8.979265] iwlwifi 0000:6e:00.0: base HW address: a0:a4:c5:21:6d:7b
[    9.047348] iwlwifi 0000:6e:00.0 wlp110s0: renamed from wlan0
[    9.739948] iwlwifi 0000:6e:00.0: Applying debug destination EXTERNAL_DRAM
[    9.817993] iwlwifi 0000:6e:00.0: Applying debug destination EXTERNAL_DRAM
[    9.819325] iwlwifi 0000:6e:00.0: FW already configured (0) - re-configuring
[    9.833689] iwlwifi 0000:6e:00.0: BIOS contains WGDS but no WRDS
[    9.859996] iwlwifi 0000:6e:00.0: Applying debug destination EXTERNAL_DRAM
[    9.938431] iwlwifi 0000:6e:00.0: Applying debug destination EXTERNAL_DRAM
[    9.939994] iwlwifi 0000:6e:00.0: FW already configured (0) - re-configuring
[    9.960038] iwlwifi 0000:6e:00.0: BIOS contains WGDS but no WRDS
[   13.410364] iwlwifi 0000:6e:00.0: Applying debug destination EXTERNAL_DRAM
[   13.488701] iwlwifi 0000:6e:00.0: Applying debug destination EXTERNAL_DRAM
[   13.490300] iwlwifi 0000:6e:00.0: FW already configured (0) - re-configuring
[   13.513114] iwlwifi 0000:6e:00.0: BIOS contains WGDS but no WRDS
james@daedalus:~$ dmesg | grep snd
[    8.879031] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[    8.885383] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops 0xffffffff99c77b60)
[    8.938018] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC298: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[    8.938021] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    8.938023] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    8.938025] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    8.938026] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    8.938028] snd_hda_codec_realtek hdaudioC0D0:      Mic=0x18
[    8.938030] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12


My VIDEO_CARDS and INPUT_DEVICES are:
Code:
james@daedalus:~$ grep VIDEO_CARDS /etc/portage/make.conf
VIDEO_CARDS="intel i965"
james@daedalus:~$ grep INPUT_DEVICES /etc/portage/make.conf
INPUT_DEVICES="libinput"


That's all I can think of. I genuinely like the machine. It's very lightweight, with good performance. Only 8GB of RAM, which is plenty for average use. Might be on the low side for serious development work. Hopefully, the information here is helpful to anyone thinking of running Gentoo on it too!
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Sep 17, 2019 8:00 pm    Post subject: Reply with quote

The Gentoo Wiki is community maintained. You can create an account and do the updates yourself.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Tue Sep 17, 2019 8:32 pm    Post subject: Reply with quote

james.h.bates wrote:
To access the firmware, you shouldn't turn the laptop on using the normal on/off button, but instead use a sharp pointy object to depress a button hidden deep behind a small hole on the righthand edge, as shown here.

...
Douglas Adams wrote:
“But the plans were on display…”
“On display? I eventually had to go down to the cellar to find them.”
“That’s the display department.”
“With a flashlight.”
“Ah, well, the lights had probably gone.”
“So had the stairs.”
“But look, you found the notice, didn’t you?”
“Yes,” said Arthur, “yes I did. It was on display in the bottom of a locked filing cabinet stuck in a disused lavatory with a sign on the door saying ‘Beware of the Leopard.”


It it just me or do others see the similarity? :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
james.h.bates
n00b
n00b


Joined: 11 Jul 2013
Posts: 12

PostPosted: Wed Sep 18, 2019 12:00 am    Post subject: Reply with quote

NeddySeagoon wrote:
james.h.bates wrote:
To access the firmware, you shouldn't turn the laptop on using the normal on/off button, but instead use a sharp pointy object to depress a button hidden deep behind a small hole on the righthand edge, as shown here.

...
Douglas Adams wrote:
“But the plans were on display…”
“On display? I eventually had to go down to the cellar to find them.”
“That’s the display department.”
“With a flashlight.”
“Ah, well, the lights had probably gone.”
“So had the stairs.”
“But look, you found the notice, didn’t you?”
“Yes,” said Arthur, “yes I did. It was on display in the bottom of a locked filing cabinet stuck in a disused lavatory with a sign on the door saying ‘Beware of the Leopard.”


It it just me or do others see the similarity? :)


Definitely some similarity there :lol:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum