LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.

Notices


Reply
  Search this Thread
Old 08-02-2020, 11:15 PM   #1
Meow1234
Member
 
Registered: Jul 2020
Distribution: Kubuntu 21.04
Posts: 56

Rep: Reputation: Disabled
Unhappy postmarketOS lightdm issue


I am currently trying to get postmarketOS in a VM in VirtualBox. I have one small issue though. LightDM will not start. Even after running
Code:
service lightdm start
it just stops. The output of that command says that LightDM does start, however after running
Code:
service lightdm status
it says it it is stopped.
Here are the commands I used to convert Alpine Linux to postmarketOS after adding the key and repository.
Code:
apk add postmarketos-base device-qemu-amd64
Code:
apk add postmarketos-ui-phosh
Code:
apk add wayland
Code:
setup-xorg-base
I also set the display memory to 128MB and I am using the VBoxVGA display controller. There is also 4GB ram and 2 cores assigned to the VM. There is also a 30GB HDD.
Can someone help me? I would really like this VM to work.
Please do not say to run this in QEMU, as all of my VMs are in VBox and I am not going to install another VM program for one VM.
 
Old 08-02-2020, 11:58 PM   #2
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
From https://wiki.postmarketos.org/wiki/Phosh don't know if it'll work but..

Quote:
Originally Posted by PostmarketOSWiki
Starting Phosh
If postmarketos-ui-phosh is installed, Phosh will be automatically launched via the
LightDM display manager.

It can also be launched manually by running
Code:
dbus-run-session /usr/bin/phosh
I've tried PureOS with phosh in virtualbox with no luck. It would boot till just before the gui started then hang with a flashing cursor. With qemu booted perfectly, don't know what the difference is.
 
Old 08-03-2020, 12:58 AM   #3
Meow1234
Member
 
Registered: Jul 2020
Distribution: Kubuntu 21.04
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Mill J View Post
From https://wiki.postmarketos.org/wiki/Phosh don't know if it'll work but..



I've tried PureOS with phosh in virtualbox with no luck. It would boot till just before the gui started then hang with a flashing cursor. With qemu booted perfectly, don't know what the difference is.
I just tried that and it froze the OS. Black screen, no cursor, no tty. Completely unresposive.
I think this is an issue with LightDM and not Phosh. I tried weston as well. Only GNOME and XFCE4 worked.

Last edited by Meow1234; 08-03-2020 at 01:09 AM.
 
Old 08-03-2020, 08:24 AM   #4
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Quote:
Originally Posted by Meow1234 View Post
I just tried that and it froze the OS. Black screen, no cursor, no tty. Completely unresposive.
I think this is an issue with LightDM and not Phosh. I tried weston as well. Only GNOME and XFCE4 worked.
Well Phosh and Weston are both wayland DE's, which could potentially Have something to do with this. Have you tried installing a different display manager?
 
Old 08-03-2020, 11:09 AM   #5
Meow1234
Member
 
Registered: Jul 2020
Distribution: Kubuntu 21.04
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Mill J View Post
Well Phosh and Weston are both wayland DE's, which could potentially Have something to do with this. Have you tried installing a different display manager?
On the postmarketOS wiki it shows that LightDM will automatically start phosh. I tried installing GDM and SLiM.
GDM worked, because it is GNOME. Phosh didn’t show up in the sessions. SLIM bricked it. I had to reinstall. On top of all that X is now reporting that there are no screens. Crap.

Last edited by Meow1234; 08-03-2020 at 11:14 AM.
 
Old 08-03-2020, 02:18 PM   #6
Meow1234
Member
 
Registered: Jul 2020
Distribution: Kubuntu 21.04
Posts: 56

Original Poster
Rep: Reputation: Disabled
I got rid of the VM. Do not answer anymore.
 
Old 09-30-2020, 09:22 PM   #7
Meow1234
Member
 
Registered: Jul 2020
Distribution: Kubuntu 21.04
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Mill J View Post
I've tried PureOS with phosh in virtualbox with no luck. It would boot till just before the gui started then hang with a flashing cursor. With qemu booted perfectly, don't know what the difference is.
I know that I said not to reply anymore, but Phosh is most definitely not the issue. I downloaded the QEMU image and ran it in VBox and with one hiccup (mouse not recognised, fixed by changing pointing device to PS/2 mouse) it ran perfectly (without mouse cursor, but that isn't an issue as I have a touch screen monitor, even adds similarity for real devices running PureOS phosh) Try running it.
Not sure what the issue is. Might be the initramfs however I haven't gotten that to work.

I'm going to try this again.
 
Old 09-30-2020, 10:31 PM   #8
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Quote:
Originally Posted by Meow1234 View Post
I know that I said not to reply anymore, but Phosh is most definitely not the issue. I downloaded the QEMU image and ran it in VBox and with one hiccup (mouse not recognised, fixed by changing pointing device to PS/2 mouse) it ran perfectly (without mouse cursor, but that isn't an issue as I have a touch screen monitor, even adds similarity for real devices running PureOS phosh) Try running it.
Not sure what the issue is. Might be the initramfs however I haven't gotten that to work.

I'm going to try this again.
Hey thanks for the update. I've actually started using Phosh pretty regularly recently. It's the default desktop for Mobian and shipped with PostmarketOS on my new smartphone.

I'm still using a vm to develop apps for mobile linux since it's easier than trying to code on the phone. And my computer is much faster at compiling.
 
Old 10-01-2020, 08:05 AM   #9
Meow1234
Member
 
Registered: Jul 2020
Distribution: Kubuntu 21.04
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Mill J View Post
Hey thanks for the update. I've actually started using Phosh pretty regularly recently. It's the default desktop for Mobian and shipped with PostmarketOS on my new smartphone.

I'm still using a vm to develop apps for mobile linux since it's easier than trying to code on the phone. And my computer is much faster at compiling.
It’s a pretty nice UI, isn’t it? I’m also going to assume you got a PinePhone since they (had) have a postmarketOS community edition that ships with pmOS.

Anyway, back to what this thread started with. I’m going to attempt to install the QEMU amd64 image to the hard disk. I’m going to try using syslinux as the bootloader.
 
Old 10-01-2020, 06:42 PM   #10
Meow1234
Member
 
Registered: Jul 2020
Distribution: Kubuntu 21.04
Posts: 56

Original Poster
Rep: Reputation: Disabled
Update: I managed to boot the kernel and initramfs. The initramfs cannot detect the root partition or boot partition though.
 
Old 10-01-2020, 06:59 PM   #11
Meow1234
Member
 
Registered: Jul 2020
Distribution: Kubuntu 21.04
Posts: 56

Original Poster
Rep: Reputation: Disabled
I am going to just run pmOS in qemu from now on. It doesn’t work in vbox and is going to be much easier to run in qemu.
 
Old 10-01-2020, 08:23 PM   #12
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Quote:
Originally Posted by Meow1234 View Post
I am going to just run pmOS in qemu from now on. It doesn’t work in vbox and is going to be much easier to run in qemu.
Fighting with VB is what got me started using qemu as well. I really like that I can set the resolution to a actual phone resolution for these mobile OS's. Helps visualize what the os/app will look like on the device.
 
Old 10-01-2020, 09:18 PM   #13
Meow1234
Member
 
Registered: Jul 2020
Distribution: Kubuntu 21.04
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Mill J View Post
Fighting with VB is what got me started using qemu as well. I really like that I can set the resolution to a actual phone resolution for these mobile OS's. Helps visualize what the os/app will look like on the device.
Yep. I do have one very small issue before getting the vm to work. I have Windows 10 on my main laptop and it has secure boot locked on and thus I cannot get linux up and running. I have to create the vm inside of VBox and then transfer it out.

I’m still quite puzzled as to why PostmarketOS works perfectly in QEMU but not in VBox.

Oh and there is a aarch64 version of QEMU so you can install native apps. Is much slower than x86_64 however.
 
Old 10-01-2020, 09:32 PM   #14
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Quote:
Originally Posted by Meow1234 View Post
Yep. I do have one very small issue before getting the vm to work. I have Windows 10 on my main laptop and it has secure boot locked on and thus I cannot get linux up and running. I have to create the vm inside of VBox and then transfer it out.

I’m still quite puzzled as to why PostmarketOS works perfectly in QEMU but not in VBox.

Oh and there is a aarch64 version of QEMU so you can install native apps. Is much slower than x86_64 however.
You might contact one of the PMOS Devs. They seem like very nice people from what I've interacted with them.

But yes, I keep virtual box for other distros/OS's, for some things it works much better.
 
Old 10-07-2020, 08:15 PM   #15
Meow1234
Member
 
Registered: Jul 2020
Distribution: Kubuntu 21.04
Posts: 56

Original Poster
Rep: Reputation: Disabled
Finally, success.

Well...

Click image for larger version

Name:	o.PNG
Views:	103
Size:	30.8 KB
ID:	34263

It took a full hour to set the dang thing up. It also has crazy lag spikes for no reason sometimes. But hey, it's better than nothing!

*yes I know I spelt success wrong, there was a lag spike at the time.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: PinePhone postmarketOS Community Edition Is Now Available to Order LXer Syndicated Linux News 0 07-16-2020 06:03 PM
LXer: This Week in Linux 107: Krita 4.3, FFmpeg 4.3, FreeNAS on Linux, postmarketOS PinePhone LXer Syndicated Linux News 0 06-23-2020 11:03 PM
LXer: PinePhone postmarketOS Community Edition Pre-Orders Kick Off in Early July LXer Syndicated Linux News 0 06-16-2020 12:01 AM
[SOLVED] lightdm-session error message after removal of lightdm rng Linux - General 3 08-28-2017 02:48 PM
LXer: Simple LightDM Manager: Change The LightDM Background Or Logo Using A GUI LXer Syndicated Linux News 0 10-05-2011 05:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 02:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration