Jump to content

Fairphone 2 (fairphone-fp2): Difference between revisions

From postmarketOS Wiki
Audio!
m Improved some wording.
Line 45: Line 45:
== How to enter flash mode ==
== How to enter flash mode ==


Hold vol-down while booting the device. The splash screen doesn't indicate, that the phone is in fastboot mode, but you can test it by running <code>fastboot devices</code> on a PC that's connected via USB to the phone.
Hold vol-down while booting the device. The splash screen doesn't indicate that the phone is in fastboot mode, but you can test it by running <code>fastboot devices</code> on a PC that's connected via USB.


== Installation ==
== Installation ==


Note, that you have to have a recent bootloader installed, you can download a zip to flash from the recovery [https://github.com/WeAreFairphone/modem_zip_generator/releases at this link].
Note that you have to have a recent bootloader installed. You can download a zip to flash from the recovery [https://github.com/WeAreFairphone/modem_zip_generator/releases at this link].


Installation procedure is the same as with most other devices and isn't special for this phone.
Installation procedure is the same as with most other devices.


== WiFi ==
== WiFi ==

Revision as of 05:03, 25 September 2019

Warning WARNING: This device is not recommended for future use with postmarketOS due to its armhf architecture. Alpine Linux (the distribution that postmarketOS extends) pmaports#599 has been considering dropping it.
The processor of the device may support the armv7 architecture. If so, you can modify the device package and change the architecture accordingly.
Fairphone Fairphone 2
Fairphone 2
Fairphone 2
Manufacturer Fairphone
Name Fairphone 2
Codename fairphone-fp2
Released 2015
Hardware
Chipset Qualcomm MSM8974AB-AB Snapdragon 801
CPU Quad-core 2.26 GHz
GPU Adreno 330
Display 1080x1920 IPS
Storage 32 GB
Memory 2 GB
Architecture armhf
Software
Original software Android 5.1 on Linux 3.4
postmarketOS
Category testing
Pre-built images no
Mainline partial
Features
Flashing
Works
USB Networking
Works
Internal storage
No data
SD card
No data
Battery
No data
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
No data
Audio
Works
Camera
No data
Camera Flash
No data
Connectivity
WiFi
Works
Bluetooth
No data
GPS
No data
NFC
No data
Modem
Calls
No data
SMS
No data
Mobile data
No data
Miscellaneous
FDE
No data
USB OTG
No data
HDMI/DP
No data
Sensors
Accelerometer
No data
Magnetometer
No data
Ambient Light
No data
Proximity
No data
Hall Effect
No data
Haptics
No data
Barometer
No data


Contributors

  • Luca Weiss (z3ntu)

Maintainer(s)

  • Luca Weiss (z3ntu)

How to enter flash mode

Hold vol-down while booting the device. The splash screen doesn't indicate that the phone is in fastboot mode, but you can test it by running fastboot devices on a PC that's connected via USB.

Installation

Note that you have to have a recent bootloader installed. You can download a zip to flash from the recovery at this link.

Installation procedure is the same as with most other devices.

WiFi

Using NetworkManager (preinstalled) doesn't work for me / my WiFi network because of some dhcp issue.

Enable the device-fairphone-fp2-nonfree-firmware package during pmbootstrap init

Then run as root on the device:

# Stop NetworkManager as it interferes with wpa_supplicant
service networkmanager stop
# Start wpa_supplicant
wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf

Connect to a network using this guide.

# Start a DHCP client on the wlan0 interface to get an IP address
udhcpc -iwlan0

Then you should have a working WiFi connection!

Audio

For audio, read pmaports!38 for now until it's more integrated.

Input devices

# Input device
/dev/input/event0:      synaptics_dsx

# Touchscreen events
# Input device
/dev/input/event1:      qpnp_pon

# Power button
Event: time 7644.433669, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 7644.433673, -------------- SYN_REPORT ------------
Event: time 7644.682747, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 7644.682750, -------------- SYN_REPORT ------------
# Input device
/dev/input/event2:      gpio-keys

# Volume up
Event: time 7575.930067, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 1
Event: time 7575.930083, -------------- SYN_REPORT ------------
Event: time 7576.100068, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 0
Event: time 7576.100083, -------------- SYN_REPORT ------------

# Volume down
Event: time 7577.650077, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 1
Event: time 7577.650093, -------------- SYN_REPORT ------------
Event: time 7577.840067, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 0
Event: time 7577.840082, -------------- SYN_REPORT ------------

# Camera
Event: time 7579.180072, type 1 (EV_KEY), code 766 (?), value 1
Event: time 7579.180089, -------------- SYN_REPORT ------------
Event: time 7579.430052, type 1 (EV_KEY), code 766 (?), value 0
Event: time 7579.430067, -------------- SYN_REPORT ------------
# Input device
/dev/input/event3:      msm8974-taiko-mtp-snd-card Button Jack

# Button on headphones
Event: time 7490.180845, type 1 (EV_KEY), code 226 (KEY_MEDIA), value 1
Event: time 7490.180865, -------------- SYN_REPORT ------------
Event: time 7492.228265, type 1 (EV_KEY), code 226 (KEY_MEDIA), value 0
Event: time 7492.228270, -------------- SYN_REPORT ------------
# Input device
/dev/input/event4:      msm8974-taiko-mtp-snd-card Headset Jack

# Plug in headphones Nr.1
Event: time 7329.700387, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 1
Event: time 7329.700389, type 5 (EV_SW), code 4 (SW_MICROPHONE_INSERT), value 1
Event: time 7329.700394, type 5 (EV_SW), code 17 (?), value 1
Event: time 7329.700396, -------------- SYN_REPORT ------------

# Unplug headphones Nr.1
Event: time 7336.406334, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 0
Event: time 7336.406337, type 5 (EV_SW), code 4 (SW_MICROPHONE_INSERT), value 0
Event: time 7336.406339, type 5 (EV_SW), code 17 (?), value 0
Event: time 7336.406341, -------------- SYN_REPORT ------------

# Plug in headphones Nr.2
Event: time 7406.442631, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 1
Event: time 7406.442636, -------------- SYN_REPORT ------------

# Unplug headphones Nr.2
Event: time 7433.144596, type 5 (EV_SW), code 2 (SW_HEADPHONE_INSERT), value 0
Event: time 7433.144600, -------------- SYN_REPORT ------------

Photos

Links