Author Topic: Qtopia - Sharp c860 - Portrait mode tweaks back to 320x240  (Read 4150 times)

Anonymous

  • Guest
Qtopia - Sharp c860 - Portrait mode tweaks back to 320x240
« on: January 26, 2004, 10:25:14 am »
I noticed the board game go running on qtopia always tweak back to 320 * 240. I am using a Sharp C760 loaded with C780 ROM. I then cross compied qtopia-1.6.0-free-beta2/src/game/go and read through the program source gowidget.cpp, but cannot find out why the Sharp kernel tweaks back to this resolution. Any clue? What Qtopia programming technique I should watch out to prevent this?

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Qtopia - Sharp c860 - Portrait mode tweaks back to 320x240
« Reply #1 on: January 26, 2004, 11:16:29 am »
Welcome to the wonderful world of closed source.

The only information can be found in the embedix kernel patch and in Piro\'s special kernel patch (google for that).
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Qtopia - Sharp c860 - Portrait mode tweaks back to 320x240
« Reply #2 on: January 27, 2004, 07:15:23 am »
It\'s nothing to do with the sharp kernel, its qtopia that is changing to 230x240. Try starting the app from terminal and I bet it starts at 640x480.

You need to change the icon for go!

Tap and hold the icon for go, the details window will pop up.
Uncheck the Display with magnified screen box and go will run at 640x480.

I\'m not sure why (probably for compatability) but most of the ipks designed for the 5x00 series zaurus always default to magnified mode, just uncheck them and most will run fine at 640x480.
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

Anonymous

  • Guest
Qtopia - Sharp c860 - Portrait mode tweaks back to 320x240
« Reply #3 on: January 27, 2004, 09:45:30 am »
Quote
It\'s nothing to do with the sharp kernel, its qtopia that is changing to 230x240. Try starting the app from terminal and I bet it starts at 640x480.

You need to change the icon for go!

Tap and hold the icon for go, the details window will pop up.
Uncheck the Display with magnified screen box and go will run at 640x480.

I\'m not sure why (probably for compatability) but most of the ipks designed for the 5x00 series zaurus always default to magnified mode, just uncheck them and most will run fine at 640x480.
yes, you are very right! when triggered under terminal mode, its 640*480. and after changing the details window, it runs with 640*480! I never knew the details window and how to get it displayed. thanks so much.

Anonymous

  • Guest
Qtopia - Sharp c860 - Portrait mode tweaks back to 320x240
« Reply #4 on: January 27, 2004, 11:27:18 am »
mickeyl, you must use gdb for crack libsl
That turn 320x240 mode on 7x0/860 with stock kernel in kino2 mplayer frontend (dont need any kernel patches):

sash@sash:~/zaurus/SL-C750/video_player/kino2$ cat sldirectpainter.h
/********************************************************************************
*******
 * ©opyleft Cacko Team,2003
 * Kino2 video player
 * http://www.cacko.biz                                                                 *
 ********************************************************************************
*******/

#ifndef _SLDIRECTPAINTER_H_
#define _SLDIRECTPAINTER_H_

#include <qobject.h>

class SlDirectPainter : public QObject
{

    Q_OBJECT

public:
    SlDirectPainter(int, bool, int);
    ~SlDirectPainter();
    bool begin(void);
    bool end(void);
//    int width(void);
//    int height(void);
    void *frameBuffer(void);
private sloteArray &data);
};

#endif

for switch to 320x240 mode just
.............
        sdp = new SlDirectPainter(0x48, false, 0x1);
        if (!sdp->begin()) {
            qDebug(\"failed to begin sldirectpainter.n\");
        } else {
            qDebug(\"sldirectpainter ok.n\");
        }
...............
for back to qtopia default screen
...............
   delete sdp
...............

--sashz

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Qtopia - Sharp c860 - Portrait mode tweaks back to 320x240
« Reply #5 on: January 27, 2004, 05:04:00 pm »
Nice work, however the OpenZaurus team won\'t use closed source libraries like libsl, so we have to do it without it.
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.