My A770 has been doing pretty well in Linux. Open source drivers and they work great. VRR in Wayland isn't working but should be fixed in the next kernel release as I saw a patch was accepted for it. Otherwise performance is pretty good on the games I've tried.
They do have to release their source code, but they do not have to submit the source code back to the mainline Linux project such that it gets maintained. Most GPL code releases for Android phones are just a .tar.gz of the source with no git history, making it difficult to work with.
The main thing is drivers. Android phones are technically Linux based, but Android vendors are under no obligation to actually submit their changes to the Linux kernel upstream. This means that any drivers they add to the kernel for their phones basically get abandoned and left to die. They often use drivers and coding styles incompatible with mainline anyways. This situation is improving, but it's little thanks to the actual hardware vendors.
Projects such as postmarketOS have developers working to write standards-conforming drivers for mobile chipsets and actually get them into the upstream mainline Linux kernel. This is what is needed to be able to run Linux on any old smartphone.
The reason the PinePhones are used for mobile Linux development is that they specifically chose chipsets that are reasonably well supported by upstream Linux, chips that have been widely used on small single board computers for over a decade (the Allwinner A10 was one of the first cheap mainstream ARM single board computer chips outside of the Raspberry Pi, and the Allwinner A64 in the PinePhone is quite similar albeit with an upgraded CPU core).
However, the situation is improving. PostmarketOS has pretty good support for some more common Android phone chips now. The main one is the Snapdragon SDM845, which can be found in a number of reasonably recent (past 5 years) phones including the OnePlus 6/6T which can still be gotten rather easily on eBay. I ran postmarketOS on a 6T for 6 months or so and it isn't perfect, but it is usable. I've gone back to my PinePhone Pro due to some call audio issues with the 6T but I really want to go back when it's worked out as the SDM845 is much more powerful than even the PinePhone Pro's Rockchip RK3399 chip.
I feel like postmarketOS will gain more device support as time goes on and more mobile chipsets get proper upstream Linux drivers.
Lol, I just did a resin print today where I forgot to put the build plate back onto the printer. Hit Print and came back to a thin sheet in the outline of the footprint of my print :|
I started using my PinePhone as a daily driver back in late 2021. It worked pretty well, but the battery life was not great and the low performance was annoying. I then got a PinePhone Pro but couldn't daily drive it for several months due to various issues, so I kept daily driving the original PinePhone. I later did get to daily drive the Pro as things started getting fixed on it, but never quite had perfect call audio. I messed around with using USB audio on the modem and got better call audio but that was not very reliable.
Now I'm daily driving a OnePlus 6T with postmarketOS. They got call audio working on the SDM845 chip and it is an 8 core 10nm chip that gets significantly better battery life than either PinePhone with a lot more performance as well. Call audio still occasionally doesn't work, but when it does the audio quality is great. The issue is that sometimes the earpiece doesn't seem to turn on so they can hear me but I can't hear them. Hopefully this gets fixed soon as otherwise the performance is awesome.
I bought a Mac Mini M1 a year ago to run Mac builds of my open source projects on but lately I gave Asahi Linux a try. It works pretty well and is constantly improving. The GPU driver is functional now though limited due to OpenGL version. As a general purpose Linux machine it does work fairly well.
Yes. For OpenRGB, we have GitLab CI jobs set up to build a variety of .deb and .rpm packages along with AppImages. We don't push them to an apt repository though. I suppose you could add a step to push the built artifacts to an external server but I don't think you can set up GitLab itself to host an apt repository.
Feather Linux, which was a small 100MB or so live ISO with fluxbox and some basic apps. My friend said Linux was good and we still had dial up in 2005, so I spent a week downloading it every night. I was not impressed, it was very basic and didn't have many programs installed. I didn't know about package managers and I didn't have an Internet connection so I ended up not liking it.
Fast forward a year or two and now we have cable Internet. I'm looking for an alternative OS for my Axim X50V Windows Mobile PDA and see Ubuntu mentioned. It's unfortunately not for PDAs but it looks awesome, way better than the Linux I previously tried. Downloaded Ubuntu 6.06 and loved it, so I installed on a second drive.
Now I daily drive a PinePhone Pro. The mobile Linux dream eventually came true! Still needs a lot of work, but it's exciting after 10 years of "Linux" powered Android stuff.
Probably the biggest issue with ARM systems is the lack of a standardized boot process. On x86, the boot process has been handled by a BIOS or UEFI going back to the earliest days of PCs. The BIOS/UEFI standards define a standardized way for the PC's BIOS to inform the OS of the PC's hardware layout - memory mappings, PCI information, hardware information, peripheral devices, storage devices, and more. A standard Linux kernel can then read these data tables that the BIOS provides and automatically load the correct drivers for all of the non-plug-and-play hardware, then use plug-and-play features to identify the rest of the hardware.
On ARM, there is no standard. UEFI on ARM exists, but it's not often used. Instead, most bootloaders just dump a kernel image in memory and transfer execution to it. If you're lucky, the bootloader will provide a command line or device tree to the kernel, but often times this information will have to be bundled with the kernel image for a specific ARM device. On top of that, ARM systems are mostly system-on-chips, which means most peripherals are memory-mapped rather than exposed on a plug-and-play bus such as PCIe. The kernel will need to know what SoC it's on so that it can know where in memory all of the peripherals are. This information is provided by a "device tree", a data table that lays out all the devices in a system. Every ARM device will have its own device tree, though they can share common parts (like a device tree portion specific to the SoC and then a portion specific to each device that uses that SoC). The device tree is then compiled into a binary file that is loaded by the kernel at boot.
There have been some developments in trying to unify the ARM boot process such as U-Boot, Tow-Boot, lk2nd, etc. but these are often still device-specific. For instance, there are device-specific Tow-Boot builds for the PinePhone and PinePhone Pro that allow both phones to boot a single unified kernel (which contains drivers for both phones) as the bootloader can provide enough information for the kernel to determine which phone it's running on.
Well, the hardware is all there. Phones really are just little ARM computers. The problem is that the phone development cycle is built around fast releases with little long-term support. They want to crank out a new phone year after year and retire them after only two years or so. That means that the driver and kernel development for most phones is a quick and dirty operation. Write messy code, hack it together until it works, and never submit anything for mainline integration.
With the advent of the Device Tree system in Linux, this has become a bit better, because it's easier for drivers to be shared among similar devices, but the official kernels still often use a manufacturer hacked-together version of major drivers.
One of the biggest issues in porting mainline Linux to a phone is trying to take the device tree structures written for the hacked-together stock kernel and manufacturer-written drivers and adapt them to the polished, standardized, mainline drivers. This usually means figuring out which pins on the processor and associated power management chip are connected to which other devices, such as the wifi chip, touchscreen, etc. Once this information is known you can write the new device tree files for the mainline kernel.
The problem with "let you do what you want with the software" is more of a problem of knowing what to do with the software, at least if your phone is bootloader unlocked.
Look up PostmarketOS. They're trying to do pretty much this, Linux on phones and tablets. There has been some good progress in getting ARM SoC support mainlined over the past few years.
Generally, porting PostmarketOS to your device comes down to finding an Android kernel source for your device, getting that to boot, then trying to use mainline instead.
I've been trying to get it up and running on my Galaxy Note 3 and have been fairly successful. The Samsung Galaxy S5 was already fairly well supported and the two phones have similar enough hardware/the same SoC so I just copied most of what was done for the S5 and modified it to use the Note 3 configs. Downstream (Android-based) kernel booted pretty easily with touchscreen and WiFi working. I'm now trying to get mainline working. I got it booting but touchscreen didn't work, but after some debugging I finally have touchscreen working in mainline. Next step is WiFi.
I ended up buying a used S5 to experiment with and compare with my Note 3 work. The S5 has working touchscreen and WiFi on mainline.
For my project I provide .deb builds as well as .AppImage for Linux. The .debs work on Debian/Ubuntu based distros and the .AppImages can be used on anything else just fine. Anything else is up to third party maintainers to pick up.
Along with what everyone else has said, the kernel is highly configurable. In most desktop oriented distros, the packaged kernel is built with loadable module support and usually all or a great majority of the available modules are provided. These modules consist of parts of the kernel that are not always required, and so are built as separate modules that can be loaded and unloaded as needed. Modules provide things like device drivers, subsystems, file systems, protocols, cryptography algorithms, and more.
The kernel build is highly configurable though, and things that are provided as modules in most major distros can often also be built into the main kernel binary itself, which means the functionality is always resident in memory. This is more common in embedded Linux devices, where the kernel is targeting one specific hardware device. If you're making a Linux powered toaster, for example, and every toaster has the same Broadcom WiFi module, ARM CPU, SD card controller, toast controller, and display module, it would be wise to build a customized kernel that includes drivers for all of those things built in and no other drivers at all, as they would go unused in such a device. This allows you to build a very small kernel binary if you only need a small subset of its features, allowing it to fit in small and light platforms with limited storage memory and RAM. A more practical example would be a consumer WiFi router. A router with 64MB RAM would not be too happy with a 70MB kernel image, but by paring down the kernel to fit the specific hardware needs, it can be under 10MB, leaving plenty of space for a userspace such as OpenWRT.
Bottom. I like the Windows taskbar and I like Linux UIs that are similar to it. My current go-to setup is Dash to Panel on GNOME.
I don't mind top either, as I got into Linux with GNOME 2 and the top+bottom layout was good. I hate left side though, it feels wrong. I understand why it is a thing, widescreen displays and all, but it breaks symmetry and just looks and feels wrong. I never could stand to use Unity without moving the panel around, and even then I never liked it.
You don't have to give up either if you don't want to. Linux can be installed on almost anything and external drives are a good option if you want to mess around with Linux without modifying your main system. I used to partition all my computers but lately I've decided to just use an external type C USB 3.1 enclosure with 1TB SATA SSD as my Linux drive. I installed Debian on it and can move it between my desktop and laptop systems. The internal drives still have Windows and the external SSD is fast enough to not notice any difference in performance when using Linux.
Ok, should be a simple change. There are two register layouts and that looks like a newer device that uses register layout 2, but I don't think I've seen 0104 before so it's probably defaulting to register layout 1. There's a list in AuraController.cpp that sets the color registers based on device string, need to add it there.
I'm going to look into my driver again this week. I didn't have to use any special compiler, just what was packaged with Ubuntu. I wiped and switched to Debian last night as I had screwed up my Ubuntu install and wasn't able to work on anything with it. I'll try building the kernel with my module on it and see if I run into the same issue.
It looks like the patch I posted is backwards, removing the new lines rather than adding them. Technically, reversing a patch that removes lines should add those lines back, so say yes to that prompt.
My A770 has been doing pretty well in Linux. Open source drivers and they work great. VRR in Wayland isn't working but should be fixed in the next kernel release as I saw a patch was accepted for it. Otherwise performance is pretty good on the games I've tried.
They do have to release their source code, but they do not have to submit the source code back to the mainline Linux project such that it gets maintained. Most GPL code releases for Android phones are just a .tar.gz of the source with no git history, making it difficult to work with.
The main thing is drivers. Android phones are technically Linux based, but Android vendors are under no obligation to actually submit their changes to the Linux kernel upstream. This means that any drivers they add to the kernel for their phones basically get abandoned and left to die. They often use drivers and coding styles incompatible with mainline anyways. This situation is improving, but it's little thanks to the actual hardware vendors.
Projects such as postmarketOS have developers working to write standards-conforming drivers for mobile chipsets and actually get them into the upstream mainline Linux kernel. This is what is needed to be able to run Linux on any old smartphone.
The reason the PinePhones are used for mobile Linux development is that they specifically chose chipsets that are reasonably well supported by upstream Linux, chips that have been widely used on small single board computers for over a decade (the Allwinner A10 was one of the first cheap mainstream ARM single board computer chips outside of the Raspberry Pi, and the Allwinner A64 in the PinePhone is quite similar albeit with an upgraded CPU core).
However, the situation is improving. PostmarketOS has pretty good support for some more common Android phone chips now. The main one is the Snapdragon SDM845, which can be found in a number of reasonably recent (past 5 years) phones including the OnePlus 6/6T which can still be gotten rather easily on eBay. I ran postmarketOS on a 6T for 6 months or so and it isn't perfect, but it is usable. I've gone back to my PinePhone Pro due to some call audio issues with the 6T but I really want to go back when it's worked out as the SDM845 is much more powerful than even the PinePhone Pro's Rockchip RK3399 chip.
I feel like postmarketOS will gain more device support as time goes on and more mobile chipsets get proper upstream Linux drivers.
Lol, I just did a resin print today where I forgot to put the build plate back onto the printer. Hit Print and came back to a thin sheet in the outline of the footprint of my print :|
Well, if you forget to cure then you'll probably need to repeat your prints a lot.
I started using my PinePhone as a daily driver back in late 2021. It worked pretty well, but the battery life was not great and the low performance was annoying. I then got a PinePhone Pro but couldn't daily drive it for several months due to various issues, so I kept daily driving the original PinePhone. I later did get to daily drive the Pro as things started getting fixed on it, but never quite had perfect call audio. I messed around with using USB audio on the modem and got better call audio but that was not very reliable.
Now I'm daily driving a OnePlus 6T with postmarketOS. They got call audio working on the SDM845 chip and it is an 8 core 10nm chip that gets significantly better battery life than either PinePhone with a lot more performance as well. Call audio still occasionally doesn't work, but when it does the audio quality is great. The issue is that sometimes the earpiece doesn't seem to turn on so they can hear me but I can't hear them. Hopefully this gets fixed soon as otherwise the performance is awesome.
I bought a Mac Mini M1 a year ago to run Mac builds of my open source projects on but lately I gave Asahi Linux a try. It works pretty well and is constantly improving. The GPU driver is functional now though limited due to OpenGL version. As a general purpose Linux machine it does work fairly well.
Yes. For OpenRGB, we have GitLab CI jobs set up to build a variety of .deb and .rpm packages along with AppImages. We don't push them to an apt repository though. I suppose you could add a step to push the built artifacts to an external server but I don't think you can set up GitLab itself to host an apt repository.
Feather Linux, which was a small 100MB or so live ISO with fluxbox and some basic apps. My friend said Linux was good and we still had dial up in 2005, so I spent a week downloading it every night. I was not impressed, it was very basic and didn't have many programs installed. I didn't know about package managers and I didn't have an Internet connection so I ended up not liking it.
Fast forward a year or two and now we have cable Internet. I'm looking for an alternative OS for my Axim X50V Windows Mobile PDA and see Ubuntu mentioned. It's unfortunately not for PDAs but it looks awesome, way better than the Linux I previously tried. Downloaded Ubuntu 6.06 and loved it, so I installed on a second drive.
Now I daily drive a PinePhone Pro. The mobile Linux dream eventually came true! Still needs a lot of work, but it's exciting after 10 years of "Linux" powered Android stuff.
Probably the biggest issue with ARM systems is the lack of a standardized boot process. On x86, the boot process has been handled by a BIOS or UEFI going back to the earliest days of PCs. The BIOS/UEFI standards define a standardized way for the PC's BIOS to inform the OS of the PC's hardware layout - memory mappings, PCI information, hardware information, peripheral devices, storage devices, and more. A standard Linux kernel can then read these data tables that the BIOS provides and automatically load the correct drivers for all of the non-plug-and-play hardware, then use plug-and-play features to identify the rest of the hardware.
On ARM, there is no standard. UEFI on ARM exists, but it's not often used. Instead, most bootloaders just dump a kernel image in memory and transfer execution to it. If you're lucky, the bootloader will provide a command line or device tree to the kernel, but often times this information will have to be bundled with the kernel image for a specific ARM device. On top of that, ARM systems are mostly system-on-chips, which means most peripherals are memory-mapped rather than exposed on a plug-and-play bus such as PCIe. The kernel will need to know what SoC it's on so that it can know where in memory all of the peripherals are. This information is provided by a "device tree", a data table that lays out all the devices in a system. Every ARM device will have its own device tree, though they can share common parts (like a device tree portion specific to the SoC and then a portion specific to each device that uses that SoC). The device tree is then compiled into a binary file that is loaded by the kernel at boot.
There have been some developments in trying to unify the ARM boot process such as U-Boot, Tow-Boot, lk2nd, etc. but these are often still device-specific. For instance, there are device-specific Tow-Boot builds for the PinePhone and PinePhone Pro that allow both phones to boot a single unified kernel (which contains drivers for both phones) as the bootloader can provide enough information for the kernel to determine which phone it's running on.
Well, the hardware is all there. Phones really are just little ARM computers. The problem is that the phone development cycle is built around fast releases with little long-term support. They want to crank out a new phone year after year and retire them after only two years or so. That means that the driver and kernel development for most phones is a quick and dirty operation. Write messy code, hack it together until it works, and never submit anything for mainline integration.
With the advent of the Device Tree system in Linux, this has become a bit better, because it's easier for drivers to be shared among similar devices, but the official kernels still often use a manufacturer hacked-together version of major drivers.
One of the biggest issues in porting mainline Linux to a phone is trying to take the device tree structures written for the hacked-together stock kernel and manufacturer-written drivers and adapt them to the polished, standardized, mainline drivers. This usually means figuring out which pins on the processor and associated power management chip are connected to which other devices, such as the wifi chip, touchscreen, etc. Once this information is known you can write the new device tree files for the mainline kernel.
The problem with "let you do what you want with the software" is more of a problem of knowing what to do with the software, at least if your phone is bootloader unlocked.
Look up PostmarketOS. They're trying to do pretty much this, Linux on phones and tablets. There has been some good progress in getting ARM SoC support mainlined over the past few years.
Generally, porting PostmarketOS to your device comes down to finding an Android kernel source for your device, getting that to boot, then trying to use mainline instead.
I've been trying to get it up and running on my Galaxy Note 3 and have been fairly successful. The Samsung Galaxy S5 was already fairly well supported and the two phones have similar enough hardware/the same SoC so I just copied most of what was done for the S5 and modified it to use the Note 3 configs. Downstream (Android-based) kernel booted pretty easily with touchscreen and WiFi working. I'm now trying to get mainline working. I got it booting but touchscreen didn't work, but after some debugging I finally have touchscreen working in mainline. Next step is WiFi.
I ended up buying a used S5 to experiment with and compare with my Note 3 work. The S5 has working touchscreen and WiFi on mainline.
For my project I provide .deb builds as well as .AppImage for Linux. The .debs work on Debian/Ubuntu based distros and the .AppImages can be used on anything else just fine. Anything else is up to third party maintainers to pick up.
Along with what everyone else has said, the kernel is highly configurable. In most desktop oriented distros, the packaged kernel is built with loadable module support and usually all or a great majority of the available modules are provided. These modules consist of parts of the kernel that are not always required, and so are built as separate modules that can be loaded and unloaded as needed. Modules provide things like device drivers, subsystems, file systems, protocols, cryptography algorithms, and more.
The kernel build is highly configurable though, and things that are provided as modules in most major distros can often also be built into the main kernel binary itself, which means the functionality is always resident in memory. This is more common in embedded Linux devices, where the kernel is targeting one specific hardware device. If you're making a Linux powered toaster, for example, and every toaster has the same Broadcom WiFi module, ARM CPU, SD card controller, toast controller, and display module, it would be wise to build a customized kernel that includes drivers for all of those things built in and no other drivers at all, as they would go unused in such a device. This allows you to build a very small kernel binary if you only need a small subset of its features, allowing it to fit in small and light platforms with limited storage memory and RAM. A more practical example would be a consumer WiFi router. A router with 64MB RAM would not be too happy with a 70MB kernel image, but by paring down the kernel to fit the specific hardware needs, it can be under 10MB, leaving plenty of space for a userspace such as OpenWRT.
Have you tried rogauracore?
Bottom. I like the Windows taskbar and I like Linux UIs that are similar to it. My current go-to setup is Dash to Panel on GNOME.
I don't mind top either, as I got into Linux with GNOME 2 and the top+bottom layout was good. I hate left side though, it feels wrong. I understand why it is a thing, widescreen displays and all, but it breaks symmetry and just looks and feels wrong. I never could stand to use Unity without moving the panel around, and even then I never liked it.
You don't have to give up either if you don't want to. Linux can be installed on almost anything and external drives are a good option if you want to mess around with Linux without modifying your main system. I used to partition all my computers but lately I've decided to just use an external type C USB 3.1 enclosure with 1TB SATA SSD as my Linux drive. I installed Debian on it and can move it between my desktop and laptop systems. The internal drives still have Windows and the external SSD is fast enough to not notice any difference in performance when using Linux.
Good to hear it works! I've added the change to my code.
Ok, should be a simple change. There are two register layouts and that looks like a newer device that uses register layout 2, but I don't think I've seen 0104 before so it's probably defaulting to register layout 1. There's a list in AuraController.cpp that sets the color registers based on device string, need to add it there.
Can you run these commands and paste the output:
i2cdetect -l
There should be a Nuvoton device listed, note its number.
sudo i2cdetect X (where X is the number of the Nuvoton device)
You can then try OpenAuraSDK:
sudo chmod 777 /dev/i2c-X (again, X being the Nuvoton device number)
then run OpenAuraSDK again.
Clone the kernel
cd to kernel source directory
patch -p1 < ../i2c-nct6775.diff
Enable NCT6775 SMBus driver in menuconfig (Device Drivers > I2C Support > Busses or something like that, set it to M to build as a module)
make -jX where X is number of cores/threads
If it fails and says missing dependencies, install dependencies and retry.
gcc version 8.3.0 (Debian 8.3.0-6)
I'm not sure about the config issue. I just updated my patch here:
https://gitlab.com/CalcProgrammer1/OpenAuraSDK/issues/37
It's building on my machine. Fresh install of Debian Buster.
I'm going to look into my driver again this week. I didn't have to use any special compiler, just what was packaged with Ubuntu. I wiped and switched to Debian last night as I had screwed up my Ubuntu install and wasn't able to work on anything with it. I'll try building the kernel with my module on it and see if I run into the same issue.
It looks like the patch I posted is backwards, removing the new lines rather than adding them. Technically, reversing a patch that removes lines should add those lines back, so say yes to that prompt.
Depends on distro, but basically download the Linux kernel source for your currently running kernel, apply patch to kernel directory:
https://www.kernel.org/doc/html/v4.10/process/applying-patches.html
Enable the driver in menuconfig
Then build the module with make. I forget the make option to tell it to just build the one subdirectory of drivers.