Hi Reed,

We just compiled our kernel with the pxafb.c file provided by you. It
solved our problem. Thank you for your help.
We still have problem of getting back to previous screen. I have done
the following in my "Dell USB Keyboard Hub.kl" file
1) Added a line of "key 68   MENU    KEY_BACK". Still can not get back
to previous screen.
2) Undo 1) and add a line of "key 68  KEY_BACK   WAKE_DROPPED". Still
have the same problem.
We will try something else and keep you updated.

For the rest of people who is interested in this topic, the following
is the difference between my pxafb.c and the one provided by Reed.

61a62
> #define C_CHANGE_DMA_BASE     (10)
200,208d200
< static int pxafb_pan_display(struct fb_var_screeninfo *var, struct
fb_info *info)
< {
<         struct pxafb_info *fbi = (struct pxafb_info *)info;
<
<         fbi->fb.var.yoffset = var->yoffset;
<         pxafb_schedule_work(fbi, C_CHANGE_DMA_BASE);
<         return 0;
< }
<
284c276
<       var->yres_virtual       = var->yres * 2;
---
>       var->yres_virtual       = var->yres*2;
325c317
<               max(var->yres_virtual, var->yres * 2); /*reed*/
---
>               max(var->yres_virtual, var->yres*2);
504d495
<       .fb_pan_display = pxafb_pan_display,/*reed*/
1003,1006d993
<       case C_CHANGE_DMA_BASE:
<               fbi->dmadesc_fbhigh_cpu->fsadr = fbi->screen_dma +
<                       
(fbi->fb.var.xres*fbi->fb.var.yoffset*fbi->fb.var.bits_per_pixel/
8);
<               break;
1185,1187d1171
<
<       fbi->fb.fix.ypanstep = 1;  /*reed*/
<
1216c1200
< /*reed*/
---
>
1218c1202
<               smemlen = mode[i].xres * mode[i].yres * 2 * mode[i].bpp / 8;
---
>               smemlen = mode[i].xres * mode[i].yres * mode[i].bpp / 8;

Thanks,

Jinjun

On Dec 11, 11:17 pm, Reed Huang <reed.hu...@gmail.com> wrote:
> Hi Jinjun,
> You can take a look at my pxafb.c 
> here:http://sites.google.com/site/siteofhx/Home/android/android-porting-steps/english/pxafb.c?attredirects=0
> And you should set one of your button's keycode as KEY_BACK. Then you will be 
> able to get back to previous screen by pressing that button.
> Jinjun wrote:Thanks, I have taken a look at my pxafb.c file and it is 
> different from your file "a", the one before the patch you provided. We have 
> tried to integrate your patch to our current code and it did not solve our 
> problem. Is it good enough that just add pxafb_pan_display function to our 
> current code or more is needed. Can you post your pxafb.c source file 
> somewhere so that we can be more understanding what you have achieved? Also, 
> what key should I use to get back to the previous screen. More patch is 
> needed to do that? Thank you so much for help. Jinjun On Dec 10, 6:52 pm, 
> mizmit1222<mizmit1...@gmail.com>wrote:Hi, I'm playing with Sharp Zaurus C3000 
> whose CPU is PXA270. The frame buffer driver is pxafb. See 
> pxafb_pan_display() in the patch file of this 
> page.http://androidzaurus.seesaa.net/article/105551643.html Also, ypanstep 
> should be set to none-zero at initialization. Cheers, On Dec 11, 10:16 am, 
> Jinjun<jinjunl...@gmail.com>wrote:Hi Reed,I am using USB mouse and keyboard. 
> How do I change the kpad driver? Thanks,JinjunOn Dec 9, 7:42 pm, 
> mizmit1222<mizmit1...@gmail.com>wrote:Hi,I guess your display driver doesn't 
> support panning function.Each time you press the cursor key, Android updates 
> frame buffer, but if frame buffer driver doesn't support panning function, 
> only once between twice your display is actually updated.On Dec 10, 11:39 am, 
> Reed Huang<reed.hu...@gmail.com>wrote:Your development board might be using 
> matrix keyboard mode instead of directly connecting each button on each 
> single GPIO. I got similar sympton when porting on the Asus P535 and got it 
> solved by changing the keypad driver. Jinjun wrote:Hi, I am using PXA270 as 
> my development board for Android and have some difficult to use my keyboard 
> to select icons and menus on the LCD screen. I tried to use left, right, up 
> and down arrow key to select icon. Sometimes there is no response at all and 
> if it does response, the second icon next to the current one will get 
> highlighted hence it is very difficult for me to get desired one selected. If 
> I do get the one I wanted, press enter key then actually activate the menu of 
> the other icon, usually next to the one selected. Can anyone provide help? 
> Also, can anybody explain the content of default qwerty.kl? Thanks for your 
> help. Jinjun- Hide quoted text -- Show quoted text -- Hide quoted text -- 
> Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to