Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

H3 : mmap to /dev/fb0 failed after change resolution

Featured Replies

Hello all;), just new to here, I bought an Orangepi PC board and grabbed lastest Armbian pre-built image with legacy kernel.

I test my code that dynamically change the HDMI output resolution,  by something like this:

 

ioctl(disp, DISP_BLANK, true)

ioctl(disp, DISP_DEVICE_SWITCH)

ioctl(disp, DISP_BLANK, false)

and then update fbvar by ioctl(fb0, FBIOPUT_VSCREENINFO)

 

I can see output actually changed, everything goes well until I try to map framebuffer from /dev/fb0, it failed with errno EINVAL.

After check drivers source code I think it's because the display driver, it forget to notify the system to update framebuffer parameters, but I can't figure out the actual problem of the code.

If I use h3disp, after reboot I can map framebuffer as well, but I need to change it dynamically. Does anyone have a solution for this? Thank you very much!

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.