Powershot SX150 IS Porting Thread - page 15 - General Discussion and Assistance - CHDK Forum

Powershot SX150 IS Porting Thread

  • 279 Replies
  • 129097 Views
*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Powershot SX150 IS Porting Thread
« Reply #140 on: 22 / January / 2012, 23:58:13 »
Advertisements
Question about kbd.c
Below is the keymap section of kbd.c from this camera.
The camera has a video button which is not shown here. Why not?
It also has an erase (delete) button, which is commented out.  Why?.

Jon

Code: [Select]
static KeyMap keymap[] = {
// Order IS important. kbd_get_pressed_key will walk down this table 
// and take the first matching mask. Notice that KEY_SHOOT_HALF is 
// always pressed if KEY_SHOOT_FULL is. --MarcusSt
//{ 0, KEY_FLASH     , 0x80000000 },
{ 2, KEY_MENU      , 0x00002000 },
{ 2, KEY_UP        , 0x00000100 },
{ 2, KEY_DOWN      , 0x00000200 },
{ 2, KEY_LEFT      , 0x00000800 },
{ 2, KEY_RIGHT     , 0x00000400 },
{ 2, KEY_SET       , 0x00001000 },
// { 1, KEY_FACE      , 0x10000000 },
{ 2, KEY_PRINT     , 0x00005000 }, // SET+DISP
//{ 2, KEY_ERASE     , 0x00008000 },
{ 2, KEY_DISPLAY   , 0x00004000 },
{ 1, KEY_ZOOM_IN   , 0x00004000 },
{ 1, KEY_ZOOM_OUT  , 0x00008000 },
{ 1, KEY_SHOOT_FULL, 0x00003000 },
    { 1, KEY_SHOOT_FULL_ONLY, 0x00002000 },
{ 1, KEY_SHOOT_HALF, 0x00001000 },
{ 0, 0, 0 }
};


Probably because whoever did the original port copied it from another camera and did not come back and verify / update it (like the DNG settings).

If you can confirm the values for the erase and video buttons I can update SVN.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: Powershot SX150 IS Porting Thread
« Reply #141 on: 23 / January / 2012, 00:30:56 »
I can confirm the following:
   { 2, KEY_PLAYBACK  , 0x00000040 },
   { 2, KEY_VIDEO     , 0x00000010 },
   { 2, KEY_ERASE     , 0x00008000 },

Jon


Probably because whoever did the original port copied it from another camera and did not come back and verify / update it (like the DNG settings).

If you can confirm the values for the erase and video buttons I can update SVN.

Phil.

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Powershot SX150 IS Porting Thread
« Reply #142 on: 23 / January / 2012, 03:35:57 »
I can confirm the following:
   { 2, KEY_PLAYBACK  , 0x00000040 },
   { 2, KEY_VIDEO     , 0x00000010 },
   { 2, KEY_ERASE     , 0x00008000 },

Jon


Probably because whoever did the original port copied it from another camera and did not come back and verify / update it (like the DNG settings).

If you can confirm the values for the erase and video buttons I can update SVN.

Phil.

Added in changeset 1606.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: Powershot SX150 IS Porting Thread
« Reply #143 on: 23 / January / 2012, 10:52:17 »
Thanks Phil,
The reason I investigated the other keys is that I hate the default <alt> key of DISP + SET.  Can't be done with one hand.  So I have personally changed mine to VIDEO.  DISP+RIGHT  is another alternative I like.    I realize that this is not something that should be changed in the public code.  Better to have a default that is same for all those cameras without a PRINT button.

Jon

Re: Powershot SX150 IS Porting Thread
« Reply #144 on: 30 / January / 2012, 15:57:47 »
Hi , i'm testing the CHDK on a SX150is and it is loading on the camera , and i can see battery level and some new items on the display , but i was totally unable to start the CHDK menu. Have been trying many button combinations without success. Can you please show me the buttons to be used in order to activate the new menu ? Mthks.

Re: Powershot SX150 IS Porting Thread
« Reply #145 on: 30 / January / 2012, 16:49:18 »
Hi,
Does the CHDK logo appear?  If so the problem is pressing the keys correctly.  The standard combination for this camera is func/set+disp.  Try hitting them simultaneously.  You will need two hands. Don't do a long press, just a normal press.  Someone else said try the func/set first then disp.  On my personal build I change this to func/set + right or to video.

Jon

Re: Powershot SX150 IS Porting Thread
« Reply #146 on: 02 / February / 2012, 23:43:44 »
Hi,
I noticed this in platform_camera.h:
    #define CAM_DRYOS_2_3_R39                           1
    #define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher

So which is it?  I have an 8gb card that I tried to boot this camera off of without success.  Wondering if it is possible.  Maybe I just screwed up something.

Jon

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Powershot SX150 IS Porting Thread
« Reply #147 on: 02 / February / 2012, 23:58:11 »
Hi,
I noticed this in platform_camera.h:
    #define CAM_DRYOS_2_3_R39                           1
    #define CAM_DRYOS_2_3_R47 1 // Defined for cameras with DryOS version R47 or higher

So which is it?  I have an 8gb card that I tried to boot this camera off of without success.  Wondering if it is possible.  Maybe I just screwed up something.

Jon


Both apply, each indicates a camera with the specific version or higher.

Booting off an 8GB card requires the BOOTDISK signature to be written to a different location on the card.
http://chdk.setepontos.com/index.php?topic=6645.0

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: Powershot SX150 IS Porting Thread
« Reply #148 on: 03 / February / 2012, 11:54:41 »
Hi,
These are the steps I followed:
Low level format the card in the camera
Copy the latest CHDK build (1630) for SX150 onto the camera.
Turn on the camera in play mode
Go to the firm update menu item.
Get a "Update File Error!!!"
Maybe the PS.FI2 file is wrong on the 1630 build?

Jon

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Powershot SX150 IS Porting Thread
« Reply #149 on: 03 / February / 2012, 14:50:50 »
Hi,
These are the steps I followed:
Low level format the card in the camera
Copy the latest CHDK build (1630) for SX150 onto the camera.
Turn on the camera in play mode
Go to the firm update menu item.
Get a "Update File Error!!!"
Maybe the PS.FI2 file is wrong on the 1630 build?

Jon

KEYSYS value was wrong. Should be fixed in revision 1633.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

 

Related Topics


SimplePortal © 2008-2014, SimplePortal