BUG Community

Welcome! Log In

Forums BUGmodules BUGview hack

Subscribe to BUGview hack  13 posts, 6 voices

Log in to reply to this topic
Jul 17, 2008 3:28pm
Medium Bug Labs team jconnolly 285 posts

So you don't like the restrictions on the module locations on the BUG in R1.1 and R1.2 of the rootfs. For whatever reason, you want to switch the channel/framebuffer that the BUGview module works on, and Xserver is running to, or you want to run dual x-servers.

You can do this by modifying a few files on your BUG's rootfs. After getting to the CLI on your BUG:

vi /etc/rc.d/rc.local

Look for:

export FRAMEBUFFER="/dev/fb/1"
/usr/X11R6/bin/Xipaq :0 -ac -mouse /dev/input/bmi_lcd_ts6,1,bmits&
sleep 1
twm -display :0 -f /root/.twmrc & # X window manager
sleep 1
xeyes -geometry 40x28+260+5 -display :0 &

To have your LCD module work in slots 0,2, change above to look like:

export FRAMEBUFFER="/dev/fb/0"
/usr/X11R6/bin/Xipaq :1 -ac -mouse /dev/input/bmi_lcd_ts4,1,bmits&
sleep 1
twm -display :1 -f /root/.twmrc & # X window manager
sleep 1
xeyes -geometry 40x28+260+5 -display :1 &

To have dual LCD modules (which, again, is not supported otherwise we'd ship it with this configuration :wink:). Edit your rc.local file to look like the following:

export FRAMEBUFFER="/dev/fb/1"
/usr/X11R6/bin/Xipaq :0 -ac -mouse /dev/input/bmi_lcd_ts5,1,bmits&
sleep 1
twm -display :0 -f /root/.twmrc & # X window manager
sleep 1
xeyes -geometry 40x28+260+5 -display :0 &

export FRAMEBUFFER="/dev/fb/0"
/usr/X11R6/bin/Xipaq :1 -ac -mouse /dev/input/bmi_lcd_ts4,1,bmits&
sleep 1
twm -display :1 -f /root/.twmrc & # X window manager
sleep 1
xeyes -geometry 40x28+260+5 -display :1 &

You'll need to reboot your BUG, and you should notice the change upon reboot. If you want immediate results you can do the same thing at the command line, but you'll need to add /usr/X11R6/bin to your path.

export PATH=$PATH:/usr/X11R6/bin

You will likely notice a reduction in performance with the responsiveness of the touch screens. However, it's pretty cool.


Jul 21, 2008 11:35pm
Medium Bug Labs team jconnolly 285 posts

phoneME Advanced is set up to render on either of the xserver displays. Since we're starting xserver on display 1, you'll want to let phoneME know about it.

Do this by modifying /opt/concierge/start.sh specifically at the line below:

export DISPLAY=:1.0

That should do it. Now when you use an app on bugnet that requires a frame, your frame will render to the appropriate xserver display.
Dec 13, 2008 10:29am
Medium Bug Labs team jconnolly 285 posts

An update on this: as of R1.3 (October 2008) X renders on both framebuffers. Java apps, however, still render on only display 0.

Jul 29, 2009 11:20am
User_img_not_found_06_med bjoern 3 posts

Has anything changed in R1.4.1 w.r.t. supporting multiple BUGview modules in Java? Is this possible?

Jul 29, 2009 12:04pm
Medium Bug Labs team agibb 8 posts

BUG supports multiple LCDs on the same side, but not back to back.  The data buses go through the connectors from one side to the other on the BUG. So you can attach two LCDs in a row, in slots 0 and 1, or slots 2 and 3.  But not slots 0 and 2 or slots 1 and 3.

Jul 29, 2009 12:53pm
User_img_not_found_06_med bjoern 3 posts

Yes, I understand there are hardware limitations that restrict how two BUGviews can be placed. But the Java framework places additional restriction on how the BUGview modules can be used.

Here are my test results:

Single BUGview module with no app running
: works in all 4 slots.

Dual BUGview modules with no app running:

Slots 0 and 1: two independently working screens

Slots 0 and 2: 0 works, 2 is blank

Slots 0 and 3: two independently working screens

Slots 1 and 2: two independently working screens

Slots 1 and 3: 1 works, 3 is blank

Slots 2 and 3: two independently working screens

Upshot: can’t do direct back-to-back, but either two modules on the same side or staggered on opposite sides work.

Now, when running the basic Java GUI example from http://bugcommunity.com/wiki/index.php/Create_a_basic_GUI I get the following results:

Single BUGview module with basic Java GUI example:

Slot 0 – works fine

Slot 1 – Colored noise (see http://community.buglabs.net/forums/8-BUGmodules/topics/273-BUGview-Slot-Restrictions

Slot 2 – works fine

Slot 3 – Colored noise

Dual BUGview modules with basic Java GUI example:

The only combinations that could work, if we believe that the above results generally hold are 0 and 1, 0 and 3, 1 and 2, 2 and 3:

Testing 0+1 resulted in blinking white screen + blinking blue LEDs = unhappy BUG; I had to power cycle and cannot get the application to start up again. Still working on this…

So my real question is: is there a way to use two BUGview modules with a Java application, and how do I address the two screens independently in the Java API?



Jul 30, 2009 10:40am
Medium Bug Labs team jconnolly 285 posts

Just to be clear, with a single module attached you should never see colored noise.  The suggests a possible hardware problem.


With regard to using two screens within a single java app, there is a limitation of the phoneME=>QT bindings that only allows for one instance of xserver to be rendered to at a time.  What this means practically is that one instance of the java process will render to one instance of the xserver process.  There is no way to have a single java program render on both LCD screens.

Jul 30, 2009 11:09am
User_img_not_found_06_med bjoern 3 posts

Thanks for the clarification – that was my impression, too, that’s it’s currently impossible to render to two screens from a Java app. My project doesn’t actually require graphics output on two screens – I’d love to show output on one, but sense touch input from the other, using it only as an input device. Any chance that may work from Java (my sense is no)?

Jul 31, 2009 1:23pm
Medium Bug Labs team jconnolly 285 posts

It’s definitely technically possible.  You could run one java app on one process and use sockets to communicate between instances of the vms, but they wouldn’t both be bugapps in the usual sense. 

Oct 24, 2012 1:41am
User_img_not_found_01_med qazqazqaz 469 posts

As a perfect combination of classic and modern fashion,Coach Outlet Online Julia Bags can show the customers'unique personality.Tiffany UK grabbed the globe, stands out as the celeb on their favorite stars luxury type, granted an innovative simple move the pavement luxury, complete with luxury.In terms of the quality and superior design that make more and more customers are satisfied to Coach Factory Online.Welcome!hat experts claim Coach Outlet Online shopping is in the changes they are available in.As long as you open our Coach Factory Outlet webpage, you will view various Coach New Arrivals which are the most popular also the most fashionable in this year.On the date when the Louis Vuitton UK on sale, all people will pour into the stores. At this time, it on the booths will be wiped out, and only one or two days the seller will declare that there is no stock anymore.

Oct 24, 2012 4:15am
User_img_not_found_01_med qazqazqaz 469 posts

Remember that the right accessories can enhance your alluring look with your Canada Goose Parkas Outlet.Baggy, ovoid shaped Canada Goose Jackets Outlet that are rounded around the shoulders look fabulous and can be a perfect match for you.This excellent conviction so that you class gets to amateur Canada Goose Outlet In a number of Parka, for example Young Canada Goose affordable Cardigan.Luxury has always been synonymous with fur and leather and this year a faux fur Canada Goose Jackets Outlet will surely be the key piece of your wardrobe.

Nov 7, 2012 10:13pm
User_img_not_found_04_med wangly 62 posts

run on is 72 hours without a refuel,” said Dziedzicki, describing how how
moncler jackets
how the generators are raised to prevent flooding from nearby
Erie and dispersed across the 35-acre campus.As Sandy moves inland, inland,
cheap replica handbags
inland, Dziedzicki is bracing for possible power outages. But he he’s prepared,
thanks to monthly maintenance checks.”You never know when when

cheap designer

when weather’s going to come,” he said, describing the regular
of switching over to backup power for an hour and and cheap moncler and keeping
diesel fuel tanks topped up. If an outage to outlast the stored fuel, UH Case
Medical Center has has cheap north face jacket
has a “memorandum of understanding” with a fuel supplier.But even the backup
generators are working properly, the switch over can can moncler outlet can cause a
10-second lapse in power to lifesaving equipment ventilators and bypass
machines, according to Dziedzicki. At UH Case Case cheap replica designer
Case Medical Center, they have it down to five seconds,
added.It’s unclear whether NYU had additional generators and fuel storage
storage north face
storage tanks that were unable to meet the hospital’s energy
which vary with the number of patients and the type type cheap replica designer handbags
type of care they need. The hospital discharged roughly 600 Friday to “reduce
[the] patient load,” according to a spokeswoman. spokeswoman.

Nov 12, 2012 2:33am
User_img_not_found_03_med shanggu 469 posts

coach outlet http://www.coachoutlettoronto.com/
coach outlet canada http://www.coachoutlettoronto.com/
coach factory outlet http://www.coachoutlettoronto.com/
canada goose outlet http://www.canadagoosejacketcanada.com/
canada goose jackets http://www.canadagoosejacketcanada.com/
canada goose toronto http://www.canadagoosejacketcanada.com/
Michael Kors Outlet Canada http://www.michaelkorsoutletmontreal.com/
Michael Kors Outlet http://www.michaelkorsoutletmontreal.com/
Michael Kors Canada http://www.michaelkorsoutletmontreal.com/

Log in to reply to this topic
Forums BUGmodules BUGview hack

Powered by Community Engine