Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I use framebuffer? #388

Open
debianroot20200524 opened this issue Jan 23, 2016 · 12 comments
Open

Can I use framebuffer? #388

debianroot20200524 opened this issue Jan 23, 2016 · 12 comments

Comments

@debianroot20200524
Copy link

My phone:XiaoMi MI-ONE C1(Android 4.1.2)
GPU:Adreno 220
CPU:Snapdragon MSM8660
RAM:1GB
I want to install Debian wheezy armhf
Who can tell me?
Thanks a lot!

@ghost
Copy link

ghost commented Jan 24, 2016

Please check this issue
#45

or Enter this command from Terminal Emulator
cat /dev/urandom > /dev/graphics/fb0
If you view "No space left on device", Your phone is not support Framebuffer.

@fervi
Copy link

fervi commented Feb 1, 2016

@mionec1 @Cloud9350
Test Cloud is partially incorrect. Please check all exits fb, because it does not have to be a fb0, and the ejection of error does not necessarily mean lack framebuffer.

The procedure looks through the terminal (as root) go to the / dev / graphics and display themselves all the way out fb
ls fb*

Later, using the command
cat /dev/urandom> /dev/fbX

Under the X-type in the number. If you type something will change, ie. There are any dots, artifacts then you probably have access to the framebuffer.

@ghost
Copy link

ghost commented Feb 2, 2016

@fervi This command from https://github.com/meefik/linuxdeploy/wiki/Framebuffer-notes
and I have fb0, fb1, fb2, hdmi but i am not working framebuffer 😄

@fervi
Copy link

fervi commented Feb 2, 2016

@Cloud9350

Well, I have since fb0 to fb17 on fb0 I framebuffer, but after entering the command also shows me the error "No space left on device", but displays a different image artifacts. How displays various artifacts, framebuffer will work.

@ghost
Copy link

ghost commented Feb 2, 2016

@fervi OK. I will retry testing.

@ghost
Copy link

ghost commented Feb 3, 2016

@fervi No "No space left on device" message and the screen is slightly shaky. What is it?

@fervi
Copy link

fervi commented Feb 3, 2016

@Cloud9350
Probably. "/dev/urandom" test is not a test which the official. Simply send information to the screen (if you can call it that). If you see something abnormal is a good chance (if not 100%), the framebuffer is working.
Set then Linux Deploy the configuration of the video device, I recommend even set "Freeze Android UI".
Also, remember to double check your "X to include" (best read logs or send) for several days configure X for Arch Linux.

TL;DR - Try it

@ghost
Copy link

ghost commented Feb 4, 2016

@fervi Thanks. Thanks. Very Thanks. 👍
You make Bluescreen Burn in my phone. (Enable Freeze Android UI) 💯
It takes 5 hours to recover. 😄 <-- It's real. Why did I thought.

I Android UI Freeze turn off, i can view black screen.
Doesn't work.

@fervi
Copy link

fervi commented Feb 4, 2016

@Cloud9350
Strange , but as usual you give "pause" does it work ?
If you have black screen it can work, but you don't have XServer or Xterm installed. (hypothesis). You should open /var/log/X* and check where is your problem

@ghost
Copy link

ghost commented Feb 4, 2016

@fervi OK. I will retry.

@ghost
Copy link

ghost commented Feb 5, 2016

@fervi
Install XServer & XTerm ✅
Android System UI Pause set ✅
I can see SOFT BRICK MY PHONE

"rebooting..."

And Remount, i can see..
screenshot_2016-02-05-19-55-21
xorg logging.

Wow.
I searching in Google.

== Edit ==
No ubuntu-drivers command, Only Invalid errors.
I Delete XTerm, and installing LightDM Desk Environment.

@plops
Copy link

plops commented Sep 27, 2017

We managed to make stuff appear on a screen of a Oneplus One with LineageOS.

Turns out that after every write to the memory mapped area, you have to submit the image for display using ioctl(fbfd, FBIOPUT_VSCREENINFO, &vinfo).

See here for a working code listing with more details:
https://github.com/plops/bacon_fb_test

I compiled it in a chroot debian environment. Make sure to stop surfaceflinger and zygote before running. Otherwise the phone will reboot.

It would be nice if someone could make the appropriate changes in the Xorg fbdev server, so that running Linux on Snapdragon based phones is finally possible again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants