GPD Win: Difference between revisions

From ArchWiki
m (translation info)
m (→‎Installation: See Special:Diff/763103, replacing "bootloader" with "boot loader" to match the wording used elsewhere in the wiki)
 
(12 intermediate revisions by 7 users not shown)
Line 2: Line 2:
[[ja:GPD Win]]
[[ja:GPD Win]]
[[zh-hans:GPD Win]]
[[zh-hans:GPD Win]]
[https://www.indiegogo.com/projects/gpd-win-intel-z8700-win-10-os-game-console-laptop#/ GPD Win] is a small (5.5 inch screen) handheld device.
{{Laptop style|Stub, misses a hardware table, accessibility, firmware and function key table.}}
[https://www.indiegogo.com/projects/gpd-win-intel-z8700-win-10-os-game-console-laptop#/ GPD Win] is a small (5.5 inch screen) handheld device. More information about the GPD Win can be found here: https://hansdegoede.livejournal.com/17445.html


== Fixes ==
== Installation ==
'''Things not mentioned below should work out-of-the-box.'''


==== Built-in Wi-Fi ====
Reboot holding either {{ic|Del}} or {{ic|Esc}} to enter BIOS. From the BIOS screen, either change the boot options to prioritize your USB drive or boot from it once.
Before [https://bugzilla.kernel.org/show_bug.cgi?id=185661 Linux Bug 185661] is resolved, a fix is needed to get built-in Wi-Fi working. Current solution is to grab '''brcmfmac4356-pcie.txt''' from [https://chromium.googlesource.com/chromiumos/third_party/linux-firmware/+/f151f016b4fe656399f199e28cabf8d658bcb52b/brcm/brcmfmac4356-pcie.txt here] and drop it into '''/lib/firmware/brcm''' and reload the '''brcmfmac''' module.
{{Note|The "txt" button at the bottom right corner of the web page does not download the correct file. You need to manually copy and paste the content to brcmfmac4356-pcie.txt.}}


Easiest way to get built-in Wi-Fi working on the Arch Linux installer is, from Windows 10, download the file above to C:\. Then from the installer do the following:
On the Arch Linux boot option screen, with the first option highlighted, press {{ic|e}} to edit boot options and add {{ic|1=fbcon=rotate:1}} for screen to be rotated correctly.


Make a directory and mount the Windows 10 partition ('''Replace mmcblk0p2 with your Windows 10 partition found by running lsblk''')
Remember during installation:
mkdir windows
mount /dev/mmcblk0p2 windows
Copy the file
cp windows/brcmfmac4356-pcie.txt /lib/firmware/brcm
Reload the module
modprobe -r brcmfmac
modprobe brcmfmac
Connect to Wi-Fi
wifi-menu
{{Note|If the Wi-Fi seems to fail, there may be an extra setting required to be set in the BIOS.  Reboot, and hold the Del key while the device is starting up, and in the BIOS screen, go under the Chipset tab, and select South Bridge, then LPSS & SCC Configuration, then change SCC SDIO Support to PCI Mode.  Save the BIOS changes then get back to the Copy the File step and retry.}}


==== Battery monitoring ====
* The storage device is {{ic|/dev/mmcblk0p''X''}}
Works out of the box since kernel 4.12.
* The {{ic|1=fbcon=rotate:1}} option should be added to the [[kernel parameters]] via your [[boot loader]].
Earlier kernels require [http://hansdegoede.livejournal.com/17445.html Hans de Goede's patched kernel].
His kernel will also fix "Not charging when the power cable gets plugged in after boot" and "Only drawing max 0.5A from the charger, charging slowly if at all".
 
==== Rotating X Session ====
Because the device uses a phone screen, the display has to be rotated to function properly.
Since kernel 4.9.2, rotating X session (manually with [[xrandr]] or within settings of a desktop environment) works out-of-the-box. (NB: before investing too much time (or buying the device) it is worth noting there may be idiosyncrasies in the gpdwin batches. Running 4.9.11-1 (March 7, 2017) did not fix the screen rotation issue on my gpdwin.).
 
If you are using Gnome and finding that everything is upscaled, you can restore scaling by running:
$ gsettings set org.gnome.desktop.interface scaling-factor 1
 
==== Rotating touch screen ====
Since kernel 4.9.2, rotating X session will automatically rotate touch screen (so far, only tested with gnome-control-center). 
{{Note|Gnome will apply the rotation properly, even when using a third party application to change orientation of the display, such as arandr.  XFCE, as it stands on 2018-02-16, does not auto-rotate the touch coordinates.}}
 
If your configuration does not auto-rotate touch, running the following command might work for you, but results seem to differ for people.
xinput set-prop 'Goodix Capacitive TouchScreen' 'Coordinate Transformation Matrix' -1 0 1 0 -1 1 0 0 1
 
==== Fixing occasional crash when using all cores ====
Turbo Boost on this CPU is software-controlled and the Linux kernel (4.4) is not throttling down the CPU enough, running at or close to 2.4Ghz the whole time even with 4 cores active which crashes the CPU eventually. Disabling the Turbo Boost feature ("Turbo Mode" in the BIOS) fixed those crashes. More info [https://www.reddit.com/r/gpdwin/comments/5o2m1v/solved_linux_44_crashing_when_using_all_4_cores/ here].
 
==== Sound ====
Works out of the box with latest and {{Pkg|linux-lts}} kernel.
Headphone jack works but currently requires [http://hansdegoede.livejournal.com/17445.html Hans de Goede's patched kernel].
 
==== Memory card reader ====
Works out of the box with latest and {{Pkg|linux-lts}} kernel.
 
==== Physical power and volume buttons ====
Works but currently requires [http://hansdegoede.livejournal.com/17445.html Hans de Goede's patched kernel].
 
==== Adjusting screen brightness ====
Works out of the box since kernel 4.14.
Earlier kernels require [http://hansdegoede.livejournal.com/17445.html Hans de Goede's patched kernel].
 
==== Suspend/resume/waking up when opening the lid ====
Works out of the box since kernel 4.14.
Earlier kernels require [http://hansdegoede.livejournal.com/17445.html Hans de Goede's patched kernel].
 
== Installation guide ==
==== Boot the installer ====
Reboot holding either '''"Del"''' or '''"Esc"''' to enter BIOS. From the BIOS screen, either change the boot options to prioritize your usb drive or boot from it once.
 
On the Arch Linux boot option screen, with the first option highlighted, click '''"e"''' to edit boot options and add '''"fbcon=rotate:1"''' for screen to be rotated correctly.
 
==== Formating and mounting partitions for dual booting with Windows 10 ====
Use "Disk Management" in Windows or similar tools to shrink the Windows 10 partition and use the space to create a new partition for Arch Linux.
 
Run lsblk to list partitions and note the numbers for the following partitions:
*('''X''') Windows Boot Loader, a 100MB partition
*('''Y''') Windows 10 partition
*('''Z''') New Linux partition
 
Format the new Linux partition and mount it
mkfs.ext4 /dev/mmcblk0p'''Z'''
mount /dev/mmcblk0p'''Z''' /mnt
 
Create boot directory and mount Windows Boot Loader
mkdir /mnt/boot
mount /dev/mmcblk0p'''X''' /mnt/boot
 
==== Install Arch Linux ====
Install base system
pacstrap -i /mnt base base-devel
 
Copy the file from the Wi-Fi fix to the new installation
cp /lib/firmware/brcm/brcmfmac4356-pcie.txt /mnt/lib/firmware/brcm
 
Continue by following [[Installation guide#Configure the system|the regular install guide]] until bootloader step, then continue below.
 
==== Install bootloader ====
Install bootloader
bootctl install
Create and fill '''/boot/loader/entries/arch.conf'''
{{Note|If you use {{Pkg|linux-lts}}, replace '''/vmlinuz-linux''' with '''/vmlinuz-linux-lts''' and '''/initramfs-linux.img''' with '''/initramfs-linux-lts.img'''}}
title  Arch Linux
linux  /vmlinuz-linux
initrd  /initramfs-linux.img
options fbcon=rotate:1 root=/dev/mmcblk0p'''Z''' rw
 
'''You have now installed Arch Linux on your GPD Win!'''

Latest revision as of 11:56, 6 March 2023

This article or section does not follow the Laptop page guidelines.

Reason: Stub, misses a hardware table, accessibility, firmware and function key table. (Discuss in Talk:GPD Win)

GPD Win is a small (5.5 inch screen) handheld device. More information about the GPD Win can be found here: https://hansdegoede.livejournal.com/17445.html

Installation

Reboot holding either Del or Esc to enter BIOS. From the BIOS screen, either change the boot options to prioritize your USB drive or boot from it once.

On the Arch Linux boot option screen, with the first option highlighted, press e to edit boot options and add fbcon=rotate:1 for screen to be rotated correctly.

Remember during installation: